Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F488654
PhamePostMailReceiver.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
609 B
Referenced Files
None
Subscribers
None
PhamePostMailReceiver.php
View Options
<?php
final
class
PhamePostMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
return
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorPhameApplication'
);
}
protected
function
getObjectPattern
()
{
return
'POST[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
substr
(
$pattern
,
4
);
return
id
(
new
PhamePostQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PhamePostReplyHandler
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 7, 7:20 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
92800
Default Alt Text
PhamePostMailReceiver.php (609 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment