Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93468453
PhabricatorAuditMailReceiver.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 29, 00:27
Size
656 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 00:27 (2 d)
Engine
blob
Format
Raw Data
Handle
22644407
Attached To
rPH Phabricator
PhabricatorAuditMailReceiver.php
View Options
<?php
final
class
PhabricatorAuditMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
return
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorAuditApplication'
);
}
protected
function
getObjectPattern
()
{
return
'C[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'C'
);
return
id
(
new
DiffusionCommitQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
needAuditRequests
(
true
)
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PhabricatorAuditReplyHandler
();
}
}
Event Timeline
Log In to Comment