Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92650303
DifferentialRevisionMailReceiver.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
Fri, Nov 22, 09:38
Size
737 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 09:38 (2 d)
Engine
blob
Format
Raw Data
Handle
22477763
Attached To
rPH Phabricator
DifferentialRevisionMailReceiver.php
View Options
<?php
final
class
DifferentialRevisionMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
return
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorDifferentialApplication'
);
}
protected
function
getObjectPattern
()
{
return
'D[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'D'
);
return
id
(
new
DifferentialRevisionQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
needReviewerStatus
(
true
)
->
needReviewerAuthority
(
true
)
->
needActiveDiffs
(
true
)
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
DifferentialReplyHandler
();
}
}
Event Timeline
Log In to Comment