Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82714742
ReleephRequestMailReceiver.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, Sep 13, 01:08
Size
543 B
Mime Type
text/x-php
Expires
Sun, Sep 15, 01:08 (2 d)
Engine
blob
Format
Raw Data
Handle
20738685
Attached To
rPH Phabricator
ReleephRequestMailReceiver.php
View Options
<?php
final
class
ReleephRequestMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
$app_class
=
'PhabricatorApplicationReleeph'
;
return
PhabricatorApplication
::
isClassInstalled
(
$app_class
);
}
protected
function
getObjectPattern
()
{
return
'RQ[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
substr
(
$pattern
,
2
);
return
id
(
new
ReleephRequestQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
}
Event Timeline
Log In to Comment