Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96631748
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
Sun, Dec 29, 06:37
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Dec 31, 06:37 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23219675
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