Differential D20301 Diff 48499 src/applications/project/trigger/PhabricatorProjectTriggerUnknownRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/trigger/PhabricatorProjectTriggerUnknownRule.php
| <?php | <?php | ||||
| final class PhabricatorProjectTriggerUnknownRule | final class PhabricatorProjectTriggerUnknownRule | ||||
| extends PhabricatorProjectTriggerRule { | extends PhabricatorProjectTriggerRule { | ||||
| const TRIGGERTYPE = 'unknown'; | const TRIGGERTYPE = 'unknown'; | ||||
| public function getDescription() { | public function getDescription() { | ||||
| return pht( | return pht( | ||||
| 'Unknown rule (of type "%s").', | 'Unknown rule (of type "%s").', | ||||
| $this->getRecord()->getType()); | $this->getRecord()->getType()); | ||||
| } | } | ||||
| public function getSelectControlName() { | |||||
| return pht('(Unknown Rule)'); | |||||
| } | |||||
| protected function isSelectableRule() { | |||||
| return false; | |||||
| } | |||||
| protected function assertValidRuleValue($value) { | protected function assertValidRuleValue($value) { | ||||
| return; | return; | ||||
| } | } | ||||
| protected function newDropTransactions($object, $value) { | protected function newDropTransactions($object, $value) { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| protected function newDropEffects($value) { | protected function newDropEffects($value) { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| protected function isValidRule() { | |||||
| return false; | |||||
| } | |||||
| protected function newInvalidView() { | |||||
| return array( | |||||
| id(new PHUIIconView()) | |||||
| ->setIcon('fa-exclamation-triangle yellow'), | |||||
| ' ', | |||||
| pht( | |||||
| 'This is a trigger rule with a unknown type ("%s").', | |||||
| $this->getRecord()->getType()), | |||||
| ); | |||||
| } | |||||
| protected function getDefaultValue() { | |||||
| return null; | |||||
| } | |||||
| protected function getPHUIXControlType() { | |||||
| return null; | |||||
| } | |||||
| protected function getPHUIXControlSpecification() { | |||||
| return null; | |||||
| } | |||||
| } | } | ||||