Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852553
ManiphestTaskAssignOtherHeraldAction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
948 B
Referenced Files
None
Subscribers
None
ManiphestTaskAssignOtherHeraldAction.php
View Options
<?php
final
class
ManiphestTaskAssignOtherHeraldAction
extends
ManiphestTaskAssignHeraldAction
{
const
ACTIONCONST
=
'maniphest.assign.other'
;
public
function
getHeraldActionName
(
)
{
return
pht
(
'Assign task to'
)
;
}
public
function
supportsRuleType
(
$rule_type
)
{
return
(
$rule_type
!=
HeraldRuleTypeConfig
::
RULE_TYPE_PERSONAL
)
;
}
public
function
applyEffect
(
$object
,
HeraldEffect
$effect
)
{
return
$this
->
applyAssign
(
$effect
->
getTarget
(
)
)
;
}
public
function
getHeraldActionStandardType
(
)
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
(
)
{
return
id
(
new
ManiphestAssigneeDatasource
(
)
)
->
setLimit
(
1
)
;
}
public
function
renderActionDescription
(
$value
)
{
if
(
head
(
$value
)
===
PhabricatorPeopleNoOwnerDatasource
::
FUNCTION_TOKEN
)
{
return
pht
(
'Unassign task.'
)
;
}
else
{
return
pht
(
'Assign task to: %s.'
,
$this
->
renderHandleList
(
$value
)
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:39 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1755774
Default Alt Text
ManiphestTaskAssignOtherHeraldAction.php (948 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment