|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class MountManager. More...
Collaboration diagram for League\Flysystem\MountManager: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 (
@method AdapterInterface getAdapter($prefix) @method Config getConfig($prefix) @method bool has($path) @method bool write($path, $contents, array $config = []) @method bool writeStream($path, $resource, array $config = []) @method bool put($path, $contents, $config = []) @method bool putStream($path, $contents, $config = []) @method string readAndDelete($path) @method bool update($path, $contents, $config = []) @method bool updateStream($path, $resource, $config = []) @method string|false read($path) @method resource|false readStream($path) @method bool rename($path, $newpath) @method bool delete($path) @method bool deleteDir($dirname) @method bool createDir($dirname, $config = []) @method array listFiles($directory = '', $recursive = false) @method array listPaths($directory = '', $recursive = false) @method array getWithMetadata($path, array $metadata) @method string|false getMimetype($path) @method string|false getTimestamp($path) @method string|false getVisibility($path) @method int|false getSize($path); @method bool setVisibility($path, $visibility) @method array|false getMetadata($path) @method Handler get($path, Handler $handler = null) @method Filesystem flushCache() @method void assertPresent($path) @method void assertAbsent($path) @method 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| League\Flysystem\MountManager::listContents | ( | $directory = '', |
|
$recursive = false |
|||
| ) |
| string | $directory | |
| bool | $recursive |
| InvalidArgumentException | |
| FilesystemNotFoundException |
Definition at line 160 of file MountManager.php.
References $result, League\Flysystem\MountManager\getFilesystem(), and League\Flysystem\MountManager\getPrefixAndPath().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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\$filesystems, and League\Flysystem\MountManager\mountFilesystem().
Referenced by League\Flysystem\MountManager\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
protected |
Definition at line 53 of file MountManager.php.
Referenced by League\Flysystem\MountManager\__construct(), and League\Flysystem\MountManager\mountFilesystems().