Differential D20304 Diff 48502 src/applications/project/trigger/PhabricatorProjectTriggerManiphestStatusRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/trigger/PhabricatorProjectTriggerManiphestStatusRule.php
| <?php | <?php | ||||
| final class PhabricatorProjectTriggerManiphestStatusRule | final class PhabricatorProjectTriggerManiphestStatusRule | ||||
| extends PhabricatorProjectTriggerRule { | extends PhabricatorProjectTriggerRule { | ||||
| const TRIGGERTYPE = 'task.status'; | const TRIGGERTYPE = 'task.status'; | ||||
| public function getDescription() { | |||||
| $value = $this->getValue(); | |||||
| return pht( | |||||
| 'Changes status to "%s".', | |||||
| ManiphestTaskStatus::getTaskStatusName($value)); | |||||
| } | |||||
| public function getSelectControlName() { | public function getSelectControlName() { | ||||
| return pht('Change status to'); | return pht('Change status to'); | ||||
| } | } | ||||
| protected function assertValidRuleValue($value) { | protected function assertValidRuleValue($value) { | ||||
| if (!is_string($value)) { | if (!is_string($value)) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| ▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines | |||||