Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92470802
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
Wed, Nov 20, 14:24
Size
661 B
Mime Type
text/x-php
Expires
Fri, Nov 22, 14:24 (2 d)
Engine
blob
Format
Raw Data
Handle
22446852
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.'
);
}
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