ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |||||||
__construct ($root, $writeFlags=LOCK_EX, $linkHandling=self::DISALLOW_LINKS, array $permissions=[]) | |||||||
Constructor. More... | |||||||
has ($path) | |||||||
Check whether a file exists.
| |||||||
write ($path, $contents, Config $config) | |||||||
Write a new file.
| |||||||
writeStream ($path, $resource, Config $config) | |||||||
Write a new file using a stream.
| |||||||
readStream ($path) | |||||||
Read a file as a stream.
| |||||||
updateStream ($path, $resource, Config $config) | |||||||
Update a file using a stream.
| |||||||
update ($path, $contents, Config $config) | |||||||
Update a file.
| |||||||
read ($path) | |||||||
Read a file.
| |||||||
rename ($path, $newpath) | |||||||
Rename a file.
| |||||||
copy ($path, $newpath) | |||||||
Copy a file.
| |||||||
delete ($path) | |||||||
Delete a file.
| |||||||
listContents ($directory='', $recursive=false) | |||||||
List contents of a directory.
| |||||||
getMetadata ($path) | |||||||
Get all the meta data of a file or directory.
| |||||||
getSize ($path) | |||||||
Get the size of a file.
| |||||||
getMimetype ($path) | |||||||
Get the mimetype of a file.
| |||||||
getTimestamp ($path) | |||||||
Get the timestamp of a file.
| |||||||
getVisibility ($path) | |||||||
Get the visibility of a file.
| |||||||
setVisibility ($path, $visibility) | |||||||
Set the visibility for a file.
| |||||||
createDir ($dirname, Config $config) | |||||||
Create a directory.
| |||||||
Public Member Functions inherited from League\Flysystem\Adapter\AbstractAdapter | |||||||
setPathPrefix ($prefix) | |||||||
Set the path prefix. More... | |||||||
getPathPrefix () | |||||||
Get the path prefix. More... | |||||||
applyPathPrefix ($path) | |||||||
Prefix a path. More... | |||||||
removePathPrefix ($path) | |||||||
Remove a path prefix. More... | |||||||
Public Member Functions inherited from League\Flysystem\AdapterInterface | |||||||
deleteDir ($dirname) | |||||||
Delete a directory. More... | |||||||
Data Fields | |
const | SKIP_LINKS = 0001 |
const | DISALLOW_LINKS = 0002 |
Data Fields inherited from League\Flysystem\AdapterInterface | |
const | VISIBILITY_PUBLIC = 'public' |
VISIBILITY_PUBLIC public visibility More... | |
const | VISIBILITY_PRIVATE = 'private' |
VISIBILITY_PRIVATE private visibility More... | |
Protected Member Functions | |
ensureDirectory ($root) | |
Ensure the root directory exists. More... | |
deleteFileInfoObject (SplFileInfo $file) | |
normalizeFileInfo (SplFileInfo $file) | |
Normalize the file info. More... | |
getFilePath (SplFileInfo $file) | |
Get the normalized path from a SplFileInfo object. More... | |
getRecursiveDirectoryIterator ($path, $mode=RecursiveIteratorIterator::SELF_FIRST) | |
getDirectoryIterator ($path) | |
mapFileInfo (SplFileInfo $file) | |
guardAgainstUnreadableFileInfo (SplFileInfo $file) | |
Protected Attributes | |
$pathSeparator = DIRECTORY_SEPARATOR | |
$permissionMap | |
$writeFlags | |
Protected Attributes inherited from League\Flysystem\Adapter\AbstractAdapter | |
$pathPrefix | |
$pathSeparator = '/' | |
Static Protected Attributes | |
static | $permissions |
Private Attributes | |
$linkHandling | |
League\Flysystem\Adapter\Local::__construct | ( | $root, | |
$writeFlags = LOCK_EX , |
|||
$linkHandling = self::DISALLOW_LINKS , |
|||
array | $permissions = [] |
||
) |
Constructor.
string | $root | |
int | $writeFlags | |
int | $linkHandling | |
array | $permissions |
LogicException |
Definition at line 74 of file Local.php.
References League\Flysystem\Adapter\Local\$linkHandling, League\Flysystem\Adapter\Local\$permissions, League\Flysystem\Adapter\Local\$writeFlags, League\Flysystem\Adapter\Local\ensureDirectory(), and League\Flysystem\Adapter\AbstractAdapter\setPathPrefix().
League\Flysystem\Adapter\Local::copy | ( | $path, | |
$newpath | |||
) |
Copy a file.
string | $path | |
string | $newpath |
Implements League\Flysystem\AdapterInterface.
Definition at line 240 of file Local.php.
References $destination, $location, $path, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), and League\Flysystem\Adapter\Local\ensureDirectory().
League\Flysystem\Adapter\Local::createDir | ( | $dirname, | |
Config | $config | ||
) |
Create a directory.
string | $dirname | directory name |
Config | $config |
Implements League\Flysystem\AdapterInterface.
Definition at line 361 of file Local.php.
References $contents, $file, $location, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), League\Flysystem\AdapterInterface\deleteDir(), League\Flysystem\Adapter\Local\deleteFileInfoObject(), League\Flysystem\Config\get(), League\Flysystem\Adapter\Local\getRecursiveDirectoryIterator(), and League\Flysystem\Adapter\Local\guardAgainstUnreadableFileInfo().
League\Flysystem\Adapter\Local::delete | ( | $path | ) |
Delete a file.
string | $path |
Implements League\Flysystem\AdapterInterface.
Definition at line 252 of file Local.php.
References $location, $path, and League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix().
|
protected |
SplFileInfo | $file |
Definition at line 403 of file Local.php.
Referenced by League\Flysystem\Adapter\Local\createDir().
|
protected |
Ensure the root directory exists.
string | $root | root directory path |
Exception | in case the root directory can not be created |
Definition at line 98 of file Local.php.
Referenced by League\Flysystem\Adapter\Local\__construct(), League\Flysystem\Adapter\Local\copy(), League\Flysystem\Adapter\Local\rename(), League\Flysystem\Adapter\Local\write(), and League\Flysystem\Adapter\Local\writeStream().
|
protected |
string | $path |
Definition at line 471 of file Local.php.
References $path.
Referenced by League\Flysystem\Adapter\Local\listContents().
|
protected |
Get the normalized path from a SplFileInfo object.
SplFileInfo | $file |
Definition at line 444 of file Local.php.
References $location, $path, and League\Flysystem\Adapter\AbstractAdapter\removePathPrefix().
Referenced by League\Flysystem\Adapter\Local\listContents(), and League\Flysystem\Adapter\Local\mapFileInfo().
League\Flysystem\Adapter\Local::getMetadata | ( | $path | ) |
Get all the meta data of a file or directory.
string | $path |
Implements League\Flysystem\ReadInterface.
Definition at line 289 of file Local.php.
References $info, $location, $path, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), and League\Flysystem\Adapter\Local\normalizeFileInfo().
Referenced by League\Flysystem\Adapter\Local\getSize(), and League\Flysystem\Adapter\Local\getTimestamp().
League\Flysystem\Adapter\Local::getMimetype | ( | $path | ) |
Get the mimetype of a file.
string | $path |
Implements League\Flysystem\ReadInterface.
Definition at line 308 of file Local.php.
References $location, $path, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), and League\Flysystem\Util\MimeType\detectByFilename().
|
protected |
string | $path | |
int | $mode |
Definition at line 458 of file Local.php.
References $path.
Referenced by League\Flysystem\Adapter\Local\createDir(), and League\Flysystem\Adapter\Local\listContents().
League\Flysystem\Adapter\Local::getSize | ( | $path | ) |
Get the size of a file.
string | $path |
Implements League\Flysystem\ReadInterface.
Definition at line 300 of file Local.php.
References $path, and League\Flysystem\Adapter\Local\getMetadata().
League\Flysystem\Adapter\Local::getTimestamp | ( | $path | ) |
Get the timestamp of a file.
string | $path |
Implements League\Flysystem\ReadInterface.
Definition at line 324 of file Local.php.
References $path, and League\Flysystem\Adapter\Local\getMetadata().
League\Flysystem\Adapter\Local::getVisibility | ( | $path | ) |
Get the visibility of a file.
string | $path |
Implements League\Flysystem\ReadInterface.
Definition at line 332 of file Local.php.
References $location, $path, League\Flysystem\Adapter\Local\$permissions, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), League\Flysystem\AdapterInterface\VISIBILITY_PRIVATE, and League\Flysystem\AdapterInterface\VISIBILITY_PUBLIC.
|
protected |
SplFileInfo | $file |
UnreadableFileException |
Definition at line 504 of file Local.php.
References League\Flysystem\UnreadableFileException\forFileInfo().
Referenced by League\Flysystem\Adapter\Local\createDir().
League\Flysystem\Adapter\Local::has | ( | $path | ) |
Check whether a file exists.
string | $path |
Implements League\Flysystem\ReadInterface.
Definition at line 114 of file Local.php.
References $location, $path, and League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix().
League\Flysystem\Adapter\Local::listContents | ( | $directory = '' , |
|
$recursive = false |
|||
) |
List contents of a directory.
string | $directory | |
bool | $recursive |
Implements League\Flysystem\ReadInterface.
Definition at line 262 of file Local.php.
References $file, $location, $path, $result, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), League\Flysystem\Adapter\Local\getDirectoryIterator(), League\Flysystem\Adapter\Local\getFilePath(), League\Flysystem\Adapter\Local\getRecursiveDirectoryIterator(), and League\Flysystem\Adapter\Local\normalizeFileInfo().
|
protected |
SplFileInfo | $file |
Definition at line 483 of file Local.php.
References League\Flysystem\Adapter\Local\getFilePath().
Referenced by League\Flysystem\Adapter\Local\normalizeFileInfo().
|
protected |
Normalize the file info.
SplFileInfo | $file |
NotSupportedException |
Definition at line 426 of file Local.php.
References League\Flysystem\NotSupportedException\forLink(), and League\Flysystem\Adapter\Local\mapFileInfo().
Referenced by League\Flysystem\Adapter\Local\getMetadata(), and League\Flysystem\Adapter\Local\listContents().
League\Flysystem\Adapter\Local::read | ( | $path | ) |
Read a file.
string | $path |
Implements League\Flysystem\ReadInterface.
Definition at line 212 of file Local.php.
References $contents, $location, $path, and League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix().
League\Flysystem\Adapter\Local::readStream | ( | $path | ) |
Read a file as a stream.
string | $path |
Implements League\Flysystem\ReadInterface.
Definition at line 175 of file Local.php.
References $location, $path, GuzzleHttp\Psr7\$stream, and League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix().
League\Flysystem\Adapter\Local::rename | ( | $path, | |
$newpath | |||
) |
Rename a file.
string | $path | |
string | $newpath |
Implements League\Flysystem\AdapterInterface.
Definition at line 227 of file Local.php.
References $destination, $location, $path, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), League\Flysystem\Util\dirname(), and League\Flysystem\Adapter\Local\ensureDirectory().
League\Flysystem\Adapter\Local::setVisibility | ( | $path, | |
$visibility | |||
) |
Set the visibility for a file.
string | $path | |
string | $visibility |
Implements League\Flysystem\AdapterInterface.
Definition at line 345 of file Local.php.
References $location, $path, $success, $type, and League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix().
Referenced by League\Flysystem\Adapter\Local\write(), and League\Flysystem\Adapter\Local\writeStream().
League\Flysystem\Adapter\Local::update | ( | $path, | |
$contents, | |||
Config | $config | ||
) |
Update a file.
Implements League\Flysystem\AdapterInterface.
Definition at line 194 of file Local.php.
References $contents, $location, $path, $size, $type, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), and League\Flysystem\Util\guessMimeType().
League\Flysystem\Adapter\Local::updateStream | ( | $path, | |
$resource, | |||
Config | $config | ||
) |
Update a file using a stream.
Implements League\Flysystem\AdapterInterface.
Definition at line 186 of file Local.php.
References $path, and League\Flysystem\Adapter\Local\writeStream().
League\Flysystem\Adapter\Local::write | ( | $path, | |
$contents, | |||
Config | $config | ||
) |
Write a new file.
Implements League\Flysystem\AdapterInterface.
Definition at line 124 of file Local.php.
References $contents, $location, $path, $result, $size, $type, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), League\Flysystem\Adapter\Local\ensureDirectory(), League\Flysystem\Config\get(), and League\Flysystem\Adapter\Local\setVisibility().
League\Flysystem\Adapter\Local::writeStream | ( | $path, | |
$resource, | |||
Config | $config | ||
) |
Write a new file using a stream.
Implements League\Flysystem\AdapterInterface.
Definition at line 147 of file Local.php.
References $location, $path, GuzzleHttp\Psr7\$stream, $type, League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix(), League\Flysystem\Adapter\Local\ensureDirectory(), League\Flysystem\Config\get(), and League\Flysystem\Adapter\Local\setVisibility().
Referenced by League\Flysystem\Adapter\Local\updateStream().
|
private |
Definition at line 62 of file Local.php.
Referenced by League\Flysystem\Adapter\Local\__construct().
|
protected |
|
staticprotected |
Definition at line 34 of file Local.php.
Referenced by League\Flysystem\Adapter\Local\__construct(), and League\Flysystem\Adapter\Local\getVisibility().
|
protected |
Definition at line 58 of file Local.php.
Referenced by League\Flysystem\Adapter\Local\__construct().
const League\Flysystem\Adapter\Local::DISALLOW_LINKS = 0002 |
Definition at line 29 of file Local.php.
Referenced by ILIAS\Filesystem\Provider\FlySystem\FlySystemLocalFilesystemFactory\mapConfigLinkToLocalLinks().
const League\Flysystem\Adapter\Local::SKIP_LINKS = 0001 |
Definition at line 24 of file Local.php.
Referenced by ILIAS\Filesystem\Provider\FlySystem\FlySystemLocalFilesystemFactory\mapConfigLinkToLocalLinks().