ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class MountManager. More...
Public Member Functions | |
__construct (array $filesystems=[]) | |
Constructor. More... | |
mountFilesystems (array $filesystems) | |
Mount filesystems. More... | |
mountFilesystem ($prefix, FilesystemInterface $filesystem) | |
Mount filesystems. More... | |
getFilesystem ($prefix) | |
Get the filesystem with the corresponding prefix. More... | |
filterPrefix (array $arguments) | |
Retrieve the prefix from an arguments array. More... | |
listContents ($directory='', $recursive=false) | |
__call ($method, $arguments) | |
Call forwarder. More... | |
copy ($from, $to, array $config=[]) | |
listWith (array $keys=[], $directory='', $recursive=false) | |
List with plugin adapter. More... | |
move ($from, $to, array $config=[]) | |
Move a file. More... | |
invokePluginOnFilesystem ($method, $arguments, $prefix) | |
Invoke a plugin on a filesystem mounted on a given prefix. More... | |
Protected Member Functions | |
getPrefixAndPath ($path) | |
Protected Attributes | |
$filesystems = [] | |
Class MountManager.
Proxies methods to Filesystem (
AdapterInterface getAdapter($prefix) Config getConfig($prefix) bool has($path) bool write($path, $contents, array $config = []) bool writeStream($path, $resource, array $config = []) bool put($path, $contents, $config = []) bool putStream($path, $contents, $config = []) string readAndDelete($path) bool update($path, $contents, $config = []) bool updateStream($path, $resource, $config = []) string|false read($path) resource|false readStream($path) bool rename($path, $newpath) bool delete($path) bool deleteDir($dirname) bool createDir($dirname, $config = []) array listFiles($directory = '', $recursive = false) array listPaths($directory = '', $recursive = false) array getWithMetadata($path, array $metadata) string|false getMimetype($path) string|false getTimestamp($path) string|false getVisibility($path) int|false getSize($path); bool setVisibility($path, $visibility) array|false getMetadata($path) Handler get($path, Handler $handler = null) Filesystem flushCache() void assertPresent($path) void assertAbsent($path) Filesystem addPlugin(PluginInterface $plugin)
Definition at line 46 of file MountManager.php.
League\Flysystem\MountManager::__construct | ( | array | $filesystems = [] | ) |
Constructor.
FilesystemInterface[] | $filesystems [:prefix => Filesystem,] |
InvalidArgumentException |
Definition at line 62 of file MountManager.php.
References League\Flysystem\MountManager\$filesystems, and League\Flysystem\MountManager\mountFilesystems().
League\Flysystem\MountManager::__call | ( | $method, | |
$arguments | |||
) |
Call forwarder.
string | $method | |
array | $arguments |
InvalidArgumentException | |
FilesystemNotFoundException |
Definition at line 184 of file MountManager.php.
References League\Flysystem\MountManager\filterPrefix(), and League\Flysystem\MountManager\invokePluginOnFilesystem().
League\Flysystem\MountManager::copy | ( | $from, | |
$to, | |||
array | $config = [] |
||
) |
string | $from | |
string | $to | |
array | $config |
InvalidArgumentException | |
FilesystemNotFoundException |
Definition at line 201 of file MountManager.php.
References $config, $from, $result, League\Flysystem\MountManager\getFilesystem(), and League\Flysystem\MountManager\getPrefixAndPath().
Referenced by League\Flysystem\MountManager\move().
League\Flysystem\MountManager::filterPrefix | ( | array | $arguments | ) |
Retrieve the prefix from an arguments array.
array | $arguments |
InvalidArgumentException |
Definition at line 133 of file MountManager.php.
References $path, and League\Flysystem\MountManager\getPrefixAndPath().
Referenced by League\Flysystem\MountManager\__call().
League\Flysystem\MountManager::getFilesystem | ( | $prefix | ) |
Get the filesystem with the corresponding prefix.
string | $prefix |
FilesystemNotFoundException |
Definition at line 115 of file MountManager.php.
References ILIAS\Filesystem\filesystems().
Referenced by League\Flysystem\MountManager\copy(), League\Flysystem\MountManager\invokePluginOnFilesystem(), and League\Flysystem\MountManager\listContents().
|
protected |
string | $path |
InvalidArgumentException |
Definition at line 298 of file MountManager.php.
References $path.
Referenced by League\Flysystem\MountManager\copy(), League\Flysystem\MountManager\filterPrefix(), League\Flysystem\MountManager\listContents(), and League\Flysystem\MountManager\listWith().
League\Flysystem\MountManager::invokePluginOnFilesystem | ( | $method, | |
$arguments, | |||
$prefix | |||
) |
Invoke a plugin on a filesystem mounted on a given prefix.
string | $method | |
array | $arguments | |
string | $prefix |
FilesystemNotFoundException |
Definition at line 276 of file MountManager.php.
References League\Flysystem\MountManager\getFilesystem(), and League\Flysystem\Plugin\invokePlugin().
Referenced by League\Flysystem\MountManager\__call(), and League\Flysystem\MountManager\listWith().
League\Flysystem\MountManager::listContents | ( | $directory = '' , |
|
$recursive = false |
|||
) |
string | $directory | |
bool | $recursive |
InvalidArgumentException | |
FilesystemNotFoundException |
Definition at line 160 of file MountManager.php.
References $file, $result, League\Flysystem\MountManager\getFilesystem(), and League\Flysystem\MountManager\getPrefixAndPath().
League\Flysystem\MountManager::listWith | ( | array | $keys = [] , |
$directory = '' , |
|||
$recursive = false |
|||
) |
List with plugin adapter.
array | $keys | |
string | $directory | |
bool | $recursive |
InvalidArgumentException | |
FilesystemNotFoundException |
Definition at line 234 of file MountManager.php.
References $keys, League\Flysystem\MountManager\getPrefixAndPath(), and League\Flysystem\MountManager\invokePluginOnFilesystem().
League\Flysystem\MountManager::mountFilesystem | ( | $prefix, | |
FilesystemInterface | $filesystem | ||
) |
Mount filesystems.
string | $prefix | |
FilesystemInterface | $filesystem |
InvalidArgumentException |
Definition at line 95 of file MountManager.php.
References ILIAS\Filesystem\filesystems().
Referenced by League\Flysystem\MountManager\mountFilesystems().
League\Flysystem\MountManager::mountFilesystems | ( | array | $filesystems | ) |
Mount filesystems.
FilesystemInterface[] | $filesystems [:prefix => Filesystem,] |
InvalidArgumentException |
Definition at line 76 of file MountManager.php.
References League\Flysystem\MountManager\mountFilesystem().
Referenced by League\Flysystem\MountManager\__construct().
League\Flysystem\MountManager::move | ( | $from, | |
$to, | |||
array | $config = [] |
||
) |
Move a file.
string | $from | |
string | $to | |
array | $config |
InvalidArgumentException | |
FilesystemNotFoundException |
Definition at line 254 of file MountManager.php.
References $config, $from, and League\Flysystem\MountManager\copy().
|
protected |
Definition at line 53 of file MountManager.php.
Referenced by League\Flysystem\MountManager\__construct().