Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / project / trigger / PhabricatorProjectTriggerUnknownRule.php
blobd354b01eafc6add32814a10739282bfcea900303
1 <?php
3 final class PhabricatorProjectTriggerUnknownRule
4 extends PhabricatorProjectTriggerRule {
6 const TRIGGERTYPE = 'unknown';
8 public function getSelectControlName() {
9 return pht('(Unknown Rule)');
12 protected function isSelectableRule() {
13 return false;
16 protected function assertValidRuleRecordFormat($value) {
17 return;
20 protected function newDropTransactions($object, $value) {
21 return array();
24 protected function newDropEffects($value) {
25 return array();
28 protected function isValidRule() {
29 return false;
32 protected function newInvalidView() {
33 return array(
34 id(new PHUIIconView())
35 ->setIcon('fa-exclamation-triangle yellow'),
36 ' ',
37 pht(
38 'This is a trigger rule with a unknown type ("%s").',
39 $this->getRecord()->getType()),
43 protected function getDefaultValue() {
44 return null;
47 protected function getPHUIXControlType() {
48 return null;
51 protected function getPHUIXControlSpecification() {
52 return null;
55 public function getRuleViewLabel() {
56 return pht('Unknown Rule');
59 public function getRuleViewDescription($value) {
60 return pht(
61 'This is an unknown rule of type "%s". An administrator may have '.
62 'edited or removed an extension which implements this rule type.',
63 $this->getRecord()->getType());
66 public function getRuleViewIcon($value) {
67 return id(new PHUIIconView())
68 ->setIcon('fa-question-circle', 'yellow');