3 final class DiffusionAuditorsAddSelfHeraldAction
4 extends DiffusionAuditorsHeraldAction
{
6 const ACTIONCONST
= 'diffusion.auditors.self.add';
8 public function getHeraldActionName() {
9 return pht('Add me as an auditor');
12 public function supportsRuleType($rule_type) {
13 return ($rule_type == HeraldRuleTypeConfig
::RULE_TYPE_PERSONAL
);
16 public function applyEffect($object, HeraldEffect
$effect) {
17 $rule = $effect->getRule();
18 $phid = $rule->getAuthorPHID();
19 return $this->applyAuditors(array($phid), $rule);
22 public function getHeraldActionStandardType() {
23 return self
::STANDARD_NONE
;
26 public function renderActionDescription($value) {
27 return pht('Add rule author as auditor.');