3
final class DiffusionAuditorsAddAuditorsHeraldAction
4
extends DiffusionAuditorsHeraldAction {
6
const ACTIONCONST = 'diffusion.auditors.add';
8
public function getHeraldActionName() {
9
return pht('Add auditors');
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
return $this->applyAuditors($effect->getTarget(), $rule);
21
public function getHeraldActionStandardType() {
22
return self::STANDARD_PHID_LIST;
25
protected function getDatasource() {
26
return new DiffusionAuditorDatasource();
29
public function renderActionDescription($value) {
30
return pht('Add auditors: %s.', $this->renderHandleList($value));