Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72590227
PhabricatorFileBundleLoader.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
Tue, Jul 16, 00:45
Size
568 B
Mime Type
text/x-php
Expires
Thu, Jul 18, 00:45 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
19073841
Attached To
rPH Phabricator
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
();
}
}
Event Timeline
Log In to Comment