Page MenuHomePhorge

PhabricatorFileBundleLoader.php
No OneTemporary

Size
551 B
Referenced Files
None
Subscribers
None

PhabricatorFileBundleLoader.php

<?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

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)

Event Timeline