Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F463841
PhabricatorFileBundleLoader.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
551 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
{
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
Mon, May 5, 8:15 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
73449
Default Alt Text
PhabricatorFileBundleLoader.php (551 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment