Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93568953
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
Fri, Nov 29, 19:48
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 1, 19:48 (2 d)
Engine
blob
Format
Raw Data
Handle
22665080
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