Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93950295
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, Dec 2, 18:58
Size
551 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 18:58 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22727527
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
{
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