Path: blob/master/src/applications/herald/action/HeraldDoNothingAction.php
12256 views
<?php12final class HeraldDoNothingAction extends HeraldAction {34const ACTIONCONST = 'nothing';5const DO_NOTHING = 'do.nothing';67public function getHeraldActionName() {8return pht('Do nothing');9}1011public function getActionGroupKey() {12return HeraldUtilityActionGroup::ACTIONGROUPKEY;13}1415public function supportsObject($object) {16return true;17}1819public function supportsRuleType($rule_type) {20return true;21}2223public function applyEffect($object, HeraldEffect $effect) {24$this->logEffect(self::DO_NOTHING);25}2627public function getHeraldActionStandardType() {28return self::STANDARD_NONE;29}3031protected function getActionEffectMap() {32return array(33self::DO_NOTHING => array(34'icon' => 'fa-check',35'color' => 'grey',36'name' => pht('Did Nothing'),37),38);39}4041public function renderActionDescription($value) {42return pht('Do nothing.');43}4445protected function renderActionEffectDescription($type, $data) {46return pht('Did nothing.');47}4849}505152