Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92104529
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
Sun, Nov 17, 09:40
Size
636 B
Mime Type
text/x-php
Expires
Tue, Nov 19, 09:40 (2 d)
Engine
blob
Format
Raw Data
Handle
22376897
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