Page MenuHomec4science

DiffusionAuditorsAddSelfHeraldAction.php
No OneTemporary

File Metadata

Created
Sat, Dec 28, 01:07

DiffusionAuditorsAddSelfHeraldAction.php

<?php
final class DiffusionAuditorsAddSelfHeraldAction
extends DiffusionAuditorsHeraldAction {
const ACTIONCONST = 'diffusion.auditors.self.add';
public function getHeraldActionName() {
return pht('Add me as an auditor');
}
public function supportsRuleType($rule_type) {
return ($rule_type == HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
}
public function applyEffect($object, HeraldEffect $effect) {
$rule = $effect->getRule();
$phid = $rule->getAuthorPHID();
return $this->applyAuditors(array($phid), $rule);
}
public function getHeraldActionStandardType() {
return self::STANDARD_NONE;
}
public function renderActionDescription($value) {
return pht('Add rule author as auditor.');
}
}

Event Timeline