Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/action/HeraldDoNothingAction.php
Show All 16 Lines | public function supportsObject($object) { | ||||
return true; | return true; | ||||
} | } | ||||
public function supportsRuleType($rule_type) { | public function supportsRuleType($rule_type) { | ||||
return true; | return true; | ||||
} | } | ||||
public function applyEffect($object, HeraldEffect $effect) { | public function applyEffect($object, HeraldEffect $effect) { | ||||
$this->logEffect($effect, self::DO_NOTHING); | $this->logEffect(self::DO_NOTHING); | ||||
} | } | ||||
public function getHeraldActionStandardType() { | public function getHeraldActionStandardType() { | ||||
return self::STANDARD_NONE; | 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.'); | |||||
} | |||||
public function renderActionEffectDescription($type, $data) { | |||||
return pht('Did nothing.'); | |||||
} | |||||
} | } |