Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82393790
PhabricatorPhurlURLMailReceiver.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
Wed, Sep 11, 03:59
Size
636 B
Mime Type
text/x-php
Expires
Fri, Sep 13, 03:59 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20693643
Attached To
rPH Phabricator
PhabricatorPhurlURLMailReceiver.php
View Options
<?php
final
class
PhabricatorPhurlURLMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
return
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorPhurlApplication'
);
}
protected
function
getObjectPattern
()
{
return
'U[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
substr
(
$pattern
,
1
);
return
id
(
new
PhabricatorPhurlURLQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PhabricatorPhurlURLReplyHandler
();
}
}
Event Timeline
Log In to Comment