Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106948797
ConpherenceThreadMailReceiver.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, Apr 2, 21:53
Size
802 B
Mime Type
text/x-php
Expires
Fri, Apr 4, 21:53 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25291478
Attached To
rPH Phabricator
ConpherenceThreadMailReceiver.php
View Options
<?php
final
class
ConpherenceThreadMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
$app_class
=
'PhabricatorConpherenceApplication'
;
return
PhabricatorApplication
::
isClassInstalled
(
$app_class
);
}
protected
function
getObjectPattern
()
{
// TODO: Only recognize "Z" once we get closer to shipping Calendar.
return
'[EZ][1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
// TODO: Only recognize "Z" once we get closer to shipping Calendar.
$id
=
(
int
)
trim
(
$pattern
,
'EZ'
);
return
id
(
new
ConpherenceThreadQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
ConpherenceReplyHandler
();
}
}
Event Timeline
Log In to Comment