- final public function __construct() — Construct a new storage engine.
- abstract public function getEngineIdentifier() — Return a unique, nonempty string which identifies this storage engine.
This is used to look up the storage engine when files needs to be read or
deleted. For instance, if you store files by giving them to a duck for
safe keeping in his nest down by the pond, you might return 'duck' from
this method.
- abstract public function getEnginePriority() — Prioritize this engine relative to other engines.
- abstract public function canWriteFiles() — Return `true` if the engine is currently writable.
- public function hasFilesizeLimit() — Return `true` if the engine has a filesize limit on storable files.
- public function getFilesizeLimit() — Return maximum storable file size, in bytes.
- public function isTestEngine() — Identifies storage engines that support unit tests.
- public function isChunkEngine() — Identifies chunking storage engines.
- abstract public function writeFile($data, $params) — Write file data to the backing storage and return a handle which can later
be used to read or delete it. For example, if the backing storage is local
disk, the handle could be the path to the file.
- abstract public function readFile($handle) — Read the contents of a file previously written by @{method:writeFile}.
- abstract public function deleteFile($handle) — Delete the data for a file previously written by @{method:writeFile}.
| string | Unique string for this engine, max length 32. |
| bool | True if this engine can support new writes. |
| bool | `true` if the engine has a filesize limit. |
| int | Maximum storable file size, in bytes. |
| bool | True if this is a test engine. |
| bool | True if this is a chunk engine. |
| string | $data | The file data to write. |
| array | $params | File metadata (name, author), if available. |
| string | Unique string which identifies the stored file, max length 255. |
| string | $handle | The handle returned from @{method:writeFile} when the file was written. |
| string | $handle | The handle returned from @{method:writeFile} when the file was written. |
| int | $length | File size in bytes. |
This method is not documented.
This method is not documented.
This method is not documented.
This method is not documented.
| int|null | Byte size, or `null` if there is no chunk support. |
This method is not documented.
| PhabricatorFile | $file | |
| $begin | |
| $end | |
Copyright © LEAD Solutions B.V.