- final public function __construct() — Construct a new storage engine.
No methods for this task.
- public function writeFile($data, $params) — Write the file data to local disk. Returns the relative path as the
file data handle.
- public function readFile($handle) — Read the file data off local disk.
- public function deleteFile($handle) — Deletes the file from local disk, if it exists.
| string | Unique string for this engine, max length 32. |
This method is not documented.
This method is not documented.
| 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 | |
| string | Absolute path to somewhere that files can be stored. |
| string | $handle | File data handle. |
| string | Absolute path to the corresponding file. |
Copyright © LEAD Solutions B.V.