Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92052814
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
Sat, Nov 16, 23:16
Size
743 B
Mime Type
text/x-php
Expires
Mon, Nov 18, 23:16 (2 d)
Engine
blob
Format
Raw Data
Handle
22368916
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
(
ManiphestTaskOwnerTransaction
::
TRANSACTIONTYPE
)
->
setNewValue
(
$viewer
->
getPHID
());
return
$xactions
;
}
}
Event Timeline
Log In to Comment