Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93212263
PonderQuestionMailReceiver.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, Nov 27, 01:40
Size
642 B
Mime Type
text/x-php
Expires
Fri, Nov 29, 01:40 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22593841
Attached To
rPH Phabricator
PonderQuestionMailReceiver.php
View Options
<?php
final
class
PonderQuestionMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
$app_class
=
'PhabricatorPonderApplication'
;
return
PhabricatorApplication
::
isClassInstalled
(
$app_class
);
}
protected
function
getObjectPattern
()
{
return
'Q[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'Q'
);
return
id
(
new
PonderQuestionQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PonderQuestionReplyHandler
();
}
}
Event Timeline
Log In to Comment