Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97134965
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
Thu, Jan 2, 20:00
Size
661 B
Mime Type
text/x-php
Expires
Sat, Jan 4, 20:00 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23335271
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