Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109664753
ManiphestClaimEmailCommand.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
Tue, Apr 22, 22:11
Size
729 B
Mime Type
text/x-php
Expires
Thu, Apr 24, 22:11 (2 d)
Engine
blob
Format
Raw Data
Handle
25737987
Attached To
rPH Phabricator
ManiphestClaimEmailCommand.php
View Options
<?php
final
class
ManiphestClaimEmailCommand
extends
ManiphestEmailCommand
{
public
function
getCommand
()
{
return
'claim'
;
}
public
function
getCommandSummary
()
{
return
pht
(
'Assign yourself as the owner of a task. To assign another user, '
.
'see `%s`.'
,
'!assign'
);
}
public
function
buildTransactions
(
PhabricatorUser
$viewer
,
PhabricatorApplicationTransactionInterface
$object
,
PhabricatorMetaMTAReceivedMail
$mail
,
$command
,
array
$argv
)
{
$xactions
=
array
();
$xactions
[]
=
$object
->
getApplicationTransactionTemplate
()
->
setTransactionType
(
ManiphestTransaction
::
TYPE_OWNER
)
->
setNewValue
(
$viewer
->
getPHID
());
return
$xactions
;
}
}
Event Timeline
Log In to Comment