Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96360851
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
Wed, Dec 25, 21:56
Size
643 B
Mime Type
text/x-php
Expires
Fri, Dec 27, 21:56 (1 d, 11 h)
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