Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852241
ManiphestTaskMailReceiver.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
710 B
Referenced Files
None
Subscribers
None
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
(
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:18 (1 d, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1767505
Default Alt Text
ManiphestTaskMailReceiver.php (710 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment