Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93511190
FileMailReceiver.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
Fri, Nov 29, 08:36
Size
600 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 08:36 (2 d)
Engine
blob
Format
Raw Data
Handle
22656360
Attached To
rPH Phabricator
FileMailReceiver.php
View Options
<?php
final
class
FileMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
return
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorFilesApplication'
);
}
protected
function
getObjectPattern
()
{
return
'F[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'F'
);
return
id
(
new
PhabricatorFileQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
FileReplyHandler
();
}
}
Event Timeline
Log In to Comment