Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96792726
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
Mon, Dec 30, 21:52
Size
656 B
Mime Type
text/x-php
Expires
Wed, Jan 1, 21:52 (2 d)
Engine
blob
Format
Raw Data
Handle
23226433
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