Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1186141
PhabricatorProjectTriggerInvalidRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorProjectTriggerInvalidRule.php
View Options
<?php
final
class
PhabricatorProjectTriggerInvalidRule
extends
PhabricatorProjectTriggerRule
{
const
TRIGGERTYPE
=
'invalid'
;
public
function
getDescription
()
{
return
pht
(
'Invalid rule (of type "%s").'
,
$this
->
getRecord
()->
getType
());
}
public
function
getSelectControlName
()
{
return
pht
(
'(Invalid Rule)'
);
}
protected
function
isSelectableRule
()
{
return
false
;
}
protected
function
assertValidRuleValue
(
$value
)
{
return
;
}
protected
function
newDropTransactions
(
$object
,
$value
)
{
return
array
();
}
protected
function
newDropEffects
(
$value
)
{
return
array
();
}
protected
function
isValidRule
()
{
return
false
;
}
protected
function
newInvalidView
()
{
return
array
(
id
(
new
PHUIIconView
())
->
setIcon
(
'fa-exclamation-triangle red'
),
' '
,
pht
(
'This is a trigger rule with a valid type ("%s") but an invalid '
.
'value.'
,
$this
->
getRecord
()->
getType
()),
);
}
protected
function
getDefaultValue
()
{
return
null
;
}
protected
function
getPHUIXControlType
()
{
return
null
;
}
protected
function
getPHUIXControlSpecification
()
{
return
null
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 2, 1:34 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
293453
Default Alt Text
PhabricatorProjectTriggerInvalidRule.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment