Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/herald/action/HeraldDoNothingAction.php
12256 views
1
<?php
2
3
final class HeraldDoNothingAction extends HeraldAction {
4
5
const ACTIONCONST = 'nothing';
6
const DO_NOTHING = 'do.nothing';
7
8
public function getHeraldActionName() {
9
return pht('Do nothing');
10
}
11
12
public function getActionGroupKey() {
13
return HeraldUtilityActionGroup::ACTIONGROUPKEY;
14
}
15
16
public function supportsObject($object) {
17
return true;
18
}
19
20
public function supportsRuleType($rule_type) {
21
return true;
22
}
23
24
public function applyEffect($object, HeraldEffect $effect) {
25
$this->logEffect(self::DO_NOTHING);
26
}
27
28
public function getHeraldActionStandardType() {
29
return self::STANDARD_NONE;
30
}
31
32
protected function getActionEffectMap() {
33
return array(
34
self::DO_NOTHING => array(
35
'icon' => 'fa-check',
36
'color' => 'grey',
37
'name' => pht('Did Nothing'),
38
),
39
);
40
}
41
42
public function renderActionDescription($value) {
43
return pht('Do nothing.');
44
}
45
46
protected function renderActionEffectDescription($type, $data) {
47
return pht('Did nothing.');
48
}
49
50
}
51
52