Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96788824
PasteMailReceiver.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, 21:04
Size
625 B
Mime Type
text/x-php
Expires
Wed, Jan 1, 21:04 (2 d)
Engine
blob
Format
Raw Data
Handle
23212966
Attached To
rPH Phabricator
PasteMailReceiver.php
View Options
<?php
final
class
PasteMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
$app_class
=
'PhabricatorPasteApplication'
;
return
PhabricatorApplication
::
isClassInstalled
(
$app_class
);
}
protected
function
getObjectPattern
()
{
return
'P[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'P'
);
return
id
(
new
PhabricatorPasteQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PasteReplyHandler
();
}
}
Event Timeline
Log In to Comment