Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103668998
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
Mon, Mar 3, 21:34
Size
568 B
Mime Type
text/x-php
Expires
Wed, Mar 5, 21:34 (2 d)
Engine
blob
Format
Raw Data
Handle
24578016
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