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