Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102242892
ManiphestTaskMailReceiver.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, Feb 18, 16:25
Size
710 B
Mime Type
text/x-php
Expires
Thu, Feb 20, 16:25 (2 d)
Engine
blob
Format
Raw Data
Handle
24292069
Attached To
rPH Phabricator
ManiphestTaskMailReceiver.php
View Options
<?php
final
class
ManiphestTaskMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
return
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorManiphestApplication'
);
}
protected
function
getObjectPattern
()
{
return
'T[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'T'
);
$results
=
id
(
new
ManiphestTaskQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
needSubscriberPHIDs
(
true
)
->
needProjectPHIDs
(
true
)
->
execute
();
return
head
(
$results
);
}
protected
function
getTransactionReplyHandler
()
{
return
new
ManiphestReplyHandler
();
}
}
Event Timeline
Log In to Comment