Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547510
ManiphestClaimEmailCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
743 B
Referenced Files
None
Subscribers
None
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
(
ManiphestTaskOwnerTransaction
::
TRANSACTIONTYPE
)
->
setNewValue
(
$viewer
->
getPHID
());
return
$xactions
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:34 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122812
Default Alt Text
ManiphestClaimEmailCommand.php (743 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment