3 final class PhabricatorProjectTriggerUnknownRule
4 extends PhabricatorProjectTriggerRule
{
6 const TRIGGERTYPE
= 'unknown';
8 public function getSelectControlName() {
9 return pht('(Unknown Rule)');
12 protected function isSelectableRule() {
16 protected function assertValidRuleRecordFormat($value) {
20 protected function newDropTransactions($object, $value) {
24 protected function newDropEffects($value) {
28 protected function isValidRule() {
32 protected function newInvalidView() {
34 id(new PHUIIconView())
35 ->setIcon('fa-exclamation-triangle yellow'),
38 'This is a trigger rule with a unknown type ("%s").',
39 $this->getRecord()->getType()),
43 protected function getDefaultValue() {
47 protected function getPHUIXControlType() {
51 protected function getPHUIXControlSpecification() {
55 public function getRuleViewLabel() {
56 return pht('Unknown Rule');
59 public function getRuleViewDescription($value) {
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');