Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90348996
ManiphestTaskAssignSelfHeraldAction.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, 19:56
Size
710 B
Mime Type
text/x-php
Expires
Sat, Nov 2, 19:56 (2 d)
Engine
blob
Format
Raw Data
Handle
22059553
Attached To
rPH Phabricator
ManiphestTaskAssignSelfHeraldAction.php
View Options
<?php
final
class
ManiphestTaskAssignSelfHeraldAction
extends
ManiphestTaskAssignHeraldAction
{
const
ACTIONCONST
=
'maniphest.assign.self'
;
public
function
getHeraldActionName
()
{
return
pht
(
'Assign task to me'
);
}
public
function
supportsRuleType
(
$rule_type
)
{
return
(
$rule_type
==
HeraldRuleTypeConfig
::
RULE_TYPE_PERSONAL
);
}
public
function
applyEffect
(
$object
,
HeraldEffect
$effect
)
{
$phid
=
$effect
->
getRule
()->
getAuthorPHID
();
return
$this
->
applyAssign
(
array
(
$phid
));
}
public
function
getHeraldActionStandardType
()
{
return
self
::
STANDARD_NONE
;
}
public
function
renderActionDescription
(
$value
)
{
return
pht
(
'Assign task to rule author.'
);
}
}
Event Timeline
Log In to Comment