Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F569552
PhabricatorFileBundleLoader.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
568 B
Referenced Files
None
Subscribers
None
PhabricatorFileBundleLoader.php
View Options
<?php
/**
* Callback provider for loading @{class@arcanist:ArcanistBundle} file data
* stored in the Files application.
*/
final
class
PhabricatorFileBundleLoader
extends
Phobject
{
private
$viewer
;
public
function
setViewer
(
PhabricatorUser
$viewer
)
{
$this
->
viewer
=
$viewer
;
return
$this
;
}
public
function
loadFileData
(
$phid
)
{
$file
=
id
(
new
PhabricatorFileQuery
())
->
setViewer
(
$this
->
viewer
)
->
withPHIDs
(
array
(
$phid
))
->
executeOne
();
if
(!
$file
)
{
return
null
;
}
return
$file
->
loadFileData
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 2:49 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
96320
Default Alt Text
PhabricatorFileBundleLoader.php (568 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment