Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/storage/PhabricatorFile.php
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | final class PhabricatorFile extends PhabricatorFileDAO | ||||
protected $storageEngine; | protected $storageEngine; | ||||
protected $storageFormat; | protected $storageFormat; | ||||
protected $storageHandle; | protected $storageHandle; | ||||
protected $ttl; | protected $ttl; | ||||
protected $isExplicitUpload = 1; | protected $isExplicitUpload = 1; | ||||
protected $viewPolicy = PhabricatorPolicies::POLICY_USER; | protected $viewPolicy = PhabricatorPolicies::POLICY_USER; | ||||
protected $isPartial = 0; | protected $isPartial = 0; | ||||
protected $isDeleted = 0; | |||||
private $objects = self::ATTACHABLE; | private $objects = self::ATTACHABLE; | ||||
private $objectPHIDs = self::ATTACHABLE; | private $objectPHIDs = self::ATTACHABLE; | ||||
private $originalFile = self::ATTACHABLE; | private $originalFile = self::ATTACHABLE; | ||||
private $transforms = self::ATTACHABLE; | private $transforms = self::ATTACHABLE; | ||||
public static function initializeNewFile() { | public static function initializeNewFile() { | ||||
$app = id(new PhabricatorApplicationQuery()) | $app = id(new PhabricatorApplicationQuery()) | ||||
Show All 28 Lines | return array( | ||||
'authorPHID' => 'phid?', | 'authorPHID' => 'phid?', | ||||
'secretKey' => 'bytes20?', | 'secretKey' => 'bytes20?', | ||||
'contentHash' => 'bytes64?', | 'contentHash' => 'bytes64?', | ||||
'ttl' => 'epoch?', | 'ttl' => 'epoch?', | ||||
'isExplicitUpload' => 'bool?', | 'isExplicitUpload' => 'bool?', | ||||
'mailKey' => 'bytes20', | 'mailKey' => 'bytes20', | ||||
'isPartial' => 'bool', | 'isPartial' => 'bool', | ||||
'builtinKey' => 'text64?', | 'builtinKey' => 'text64?', | ||||
'isDeleted' => 'bool', | |||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'key_phid' => null, | 'key_phid' => null, | ||||
'phid' => array( | 'phid' => array( | ||||
'columns' => array('phid'), | 'columns' => array('phid'), | ||||
'unique' => true, | 'unique' => true, | ||||
), | ), | ||||
'authorPHID' => array( | 'authorPHID' => array( | ||||
▲ Show 20 Lines • Show All 1,493 Lines • Show Last 20 Lines |