Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96794585
LegalpadMailReceiver.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
Mon, Dec 30, 22:14
Size
667 B
Mime Type
text/x-php
Expires
Wed, Jan 1, 22:14 (2 d)
Engine
blob
Format
Raw Data
Handle
23212927
Attached To
rPH Phabricator
LegalpadMailReceiver.php
View Options
<?php
final
class
LegalpadMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
$app_class
=
'PhabricatorLegalpadApplication'
;
return
PhabricatorApplication
::
isClassInstalled
(
$app_class
);
}
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
();
}
}
Event Timeline
Log In to Comment