Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77588526
PonderAnswerMailReceiver.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, Aug 15, 08:31
Size
642 B
Mime Type
text/x-php
Expires
Sat, Aug 17, 08:31 (2 d)
Engine
blob
Format
Raw Data
Handle
19890341
Attached To
rPH Phabricator
PonderAnswerMailReceiver.php
View Options
<?php
final
class
PonderAnswerMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
$app_class
=
'PhabricatorPonderApplication'
;
return
PhabricatorApplication
::
isClassInstalled
(
$app_class
);
}
protected
function
getObjectPattern
()
{
return
'ANSR[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'ANSR'
);
return
id
(
new
PonderAnswerQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PonderAnswerReplyHandler
();
}
}
Event Timeline
Log In to Comment