Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90352115
HeraldDoNothingAction.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
Thu, Oct 31, 20:57
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Nov 2, 20:57 (2 d)
Engine
blob
Format
Raw Data
Handle
22060292
Attached To
rPH Phabricator
HeraldDoNothingAction.php
View Options
<?php
final
class
HeraldDoNothingAction
extends
HeraldAction
{
const
ACTIONCONST
=
'nothing'
;
const
DO_NOTHING
=
'do.nothing'
;
public
function
getHeraldActionName
()
{
return
pht
(
'Do nothing'
);
}
public
function
getActionGroupKey
()
{
return
HeraldUtilityActionGroup
::
ACTIONGROUPKEY
;
}
public
function
supportsObject
(
$object
)
{
return
true
;
}
public
function
supportsRuleType
(
$rule_type
)
{
return
true
;
}
public
function
applyEffect
(
$object
,
HeraldEffect
$effect
)
{
$this
->
logEffect
(
self
::
DO_NOTHING
);
}
public
function
getHeraldActionStandardType
()
{
return
self
::
STANDARD_NONE
;
}
protected
function
getActionEffectMap
()
{
return
array
(
self
::
DO_NOTHING
=>
array
(
'icon'
=>
'fa-check'
,
'color'
=>
'grey'
,
'name'
=>
pht
(
'Did Nothing'
),
),
);
}
public
function
renderActionDescription
(
$value
)
{
return
pht
(
'Do nothing.'
);
}
protected
function
renderActionEffectDescription
(
$type
,
$data
)
{
return
pht
(
'Did nothing.'
);
}
}
Event Timeline
Log In to Comment