|
Elgg
Version 2.3
|
A wrapper around Flysystem that implements Elgg's filesystem API. More...
Public Member Functions | |
| __construct (Filesystem $filesystem, $local_path='', $chroot='') | |
| Use one of the static factory functions to create an instance. More... | |
| chroot ($path) | |
| @inheritDoc More... | |
| isFile ($path) | |
| @inheritDoc More... | |
| getContents ($path) | |
| @inheritDoc More... | |
| getFile ($path) | |
| @inheritDoc More... | |
| getFiles ($path='', $recursive=true) | |
| @inheritDoc More... | |
| getDirectories ($path='', $recursive=true) | |
| @inheritDoc More... | |
| getPath ($path='') | |
| @inheritDoc More... | |
| includeFile ($path) | |
| @inheritDoc More... | |
| putContents ($path, $content) | |
| @inheritDoc More... | |
Static Public Member Functions | |
| static | createLocal ($path) |
| Shorthand for generating a new local filesystem. More... | |
| static | createInMemory () |
| Shorthand for generating a new in-memory-only filesystem. More... | |
Protected Member Functions | |
| getEntries ($path='', $recursive=true, $types=['file', 'dir']) | |
| List the files and directories in the given directory path. More... | |
| Elgg\Filesystem\Directory\Fly::__construct | ( | Filesystem | $filesystem, |
$local_path = '', |
|||
$chroot = '' |
|||
| ) |
Use one of the static factory functions to create an instance.
| Filesystem | $filesystem | The underlying filesystem implementation. It must have the 'ListFiles' plugin. |
| string | $local_path | Only applicable for local filesystem. |
| string | $chroot | Path relative to the underlying filesystem root. |
| Elgg\Filesystem\Directory\Fly::chroot | ( | $path | ) |
|
static |
|
static |
| Elgg\Filesystem\Directory\Fly::getContents | ( | $path | ) |
| Elgg\Filesystem\Directory\Fly::getDirectories | ( | $path = '', |
|
$recursive = true |
|||
| ) |
|
protected |
List the files and directories in the given directory path.
| string | $path | The subdirectory path within this directory |
| bool | $recursive | Find files and directories recursively |
| string[] | $types | Entry types to return ('file' and/or 'dir') |
| Elgg\Filesystem\Directory\Fly::getFile | ( | $path | ) |
| Elgg\Filesystem\Directory\Fly::getFiles | ( | $path = '', |
|
$recursive = true |
|||
| ) |
| Elgg\Filesystem\Directory\Fly::getPath | ( | $path = '' | ) |
| Elgg\Filesystem\Directory\Fly::includeFile | ( | $path | ) |
| Elgg\Filesystem\Directory\Fly::isFile | ( | $path | ) |
| Elgg\Filesystem\Directory\Fly::putContents | ( | $path, | |
| $content | |||
| ) |