~ubuntu-branches/ubuntu/wily/phabricator/wily-proposed

« back to all changes in this revision

Viewing changes to phabricator/src/applications/diffusion/herald/DiffusionAuditorsAddAuditorsHeraldAction.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-08-03 23:28:35 UTC
  • mfrom: (0.39.1) (0.38.1) (0.27.3) (2.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20150803232835-qnomusa964oxnywb
Tags: 0~git20150803-1
* New snapshot release (closes: #789760)
* renamed arcanist bash-completion file (closes: #791632)
* depends on same version for libphutil (closes: #794462)
* added php5-mysqlnd alternative depends (closes: #792136)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
final class DiffusionAuditorsAddAuditorsHeraldAction
 
4
  extends DiffusionAuditorsHeraldAction {
 
5
 
 
6
  const ACTIONCONST = 'diffusion.auditors.add';
 
7
 
 
8
  public function getHeraldActionName() {
 
9
    return pht('Add auditors');
 
10
  }
 
11
 
 
12
  public function supportsRuleType($rule_type) {
 
13
    return ($rule_type != HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
 
14
  }
 
15
 
 
16
  public function applyEffect($object, HeraldEffect $effect) {
 
17
    $rule = $effect->getRule();
 
18
    return $this->applyAuditors($effect->getTarget(), $rule);
 
19
  }
 
20
 
 
21
  public function getHeraldActionStandardType() {
 
22
    return self::STANDARD_PHID_LIST;
 
23
  }
 
24
 
 
25
  protected function getDatasource() {
 
26
    return new DiffusionAuditorDatasource();
 
27
  }
 
28
 
 
29
  public function renderActionDescription($value) {
 
30
    return pht('Add auditors: %s.', $this->renderHandleList($value));
 
31
  }
 
32
 
 
33
}