Page MenuHomePhorge

HeraldDoNothingAction.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

HeraldDoNothingAction.php

<?php
final class HeraldDoNothingAction extends HeraldAction {
const ACTIONCONST = 'nothing';
const DO_NOTHING = 'do.nothing';
public function getHeraldActionName() {
return pht('Do nothing');
}
public function getActionGroupKey() {
return HeraldUtilityActionGroup::ACTIONGROUPKEY;
}
public function supportsObject($object) {
return true;
}
public function supportsRuleType($rule_type) {
return true;
}
public function applyEffect($object, HeraldEffect $effect) {
$this->logEffect(self::DO_NOTHING);
}
public function getHeraldActionStandardType() {
return self::STANDARD_NONE;
}
protected function getActionEffectMap() {
return array(
self::DO_NOTHING => array(
'icon' => 'fa-check',
'color' => 'grey',
'name' => pht('Did Nothing'),
),
);
}
public function renderActionDescription($value) {
return pht('Do nothing.');
}
protected function renderActionEffectDescription($type, $data) {
return pht('Did nothing.');
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 4:41 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120848
Default Alt Text
HeraldDoNothingAction.php (1 KB)

Event Timeline