Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96452688
PhabricatorCountdownMailReceiver.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
Thu, Dec 26, 21:36
Size
643 B
Mime Type
text/x-php
Expires
Sat, Dec 28, 21:36 (2 d)
Engine
blob
Format
Raw Data
Handle
23172083
Attached To
rPH Phabricator
PhabricatorCountdownMailReceiver.php
View Options
<?php
final
class
PhabricatorCountdownMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
return
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorCountdownApplication'
);
}
protected
function
getObjectPattern
()
{
return
'C[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
substr
(
$pattern
,
4
);
return
id
(
new
PhabricatorCountdownQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PhabricatorCountdownReplyHandler
();
}
}
Event Timeline
Log In to Comment