Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103062079
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
Wed, Feb 26, 23:27
Size
656 B
Mime Type
text/x-php
Expires
Fri, Feb 28, 23:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24491069
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