Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101825023
PhabricatorProjectTriggerUnknownRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 14, 02:43
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Feb 16, 02:43 (2 d)
Engine
blob
Format
Raw Data
Handle
24238283
Attached To
rPH Phabricator
PhabricatorProjectTriggerUnknownRule.php
View Options
<?php
final
class
PhabricatorProjectTriggerUnknownRule
extends
PhabricatorProjectTriggerRule
{
const
TRIGGERTYPE
=
'unknown'
;
public
function
getSelectControlName
()
{
return
pht
(
'(Unknown 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 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
;
}
public
function
getRuleViewLabel
()
{
return
pht
(
'Unknown Rule'
);
}
public
function
getRuleViewDescription
(
$value
)
{
return
pht
(
'This is an unknown rule of type "%s". An administrator may have '
.
'edited or removed an extension which implements this rule type.'
,
$this
->
getRecord
()->
getType
());
}
public
function
getRuleViewIcon
(
$value
)
{
return
id
(
new
PHUIIconView
())
->
setIcon
(
'fa-question-circle'
,
'yellow'
);
}
}
Event Timeline
Log In to Comment