ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class FilesystemFacade. More...
Public Member Functions | |
__construct (FileStreamAccess $fileStreamAccess, FileAccess $fileAccess, DirectoryAccess $directoryAccess) | |
FilesystemFacade constructor. More... | |
hasDir ($path) | |
listContents ($path='', $recursive=false) | |
createDir ($path, $visibility=Visibility::PUBLIC_ACCESS) | |
copyDir ($source, $destination) | |
deleteDir ($path) | |
read ($path) | |
has ($path) | |
getMimeType ($path) | |
getTimestamp ($path) | |
getSize ($path, $fileSizeUnit) | |
setVisibility ($path, $visibility) | |
getVisibility ($path) | |
readStream ($path) | |
writeStream ($path, FileStream $stream) | |
putStream ($path, FileStream $stream) | |
updateStream ($path, FileStream $stream) | |
write ($path, $content) | |
update ($path, $newContent) | |
put ($path, $content) | |
delete ($path) | |
readAndDelete ($path) | |
rename ($path, $newPath) | |
copy ($path, $copyPath) | |
Private Attributes | |
$fileStreamAccess | |
$fileAccess | |
$directoryAccess | |
Class FilesystemFacade.
The filesystem facade is used internally to satisfy the Filesystem interface because the implementations are split into different classes to reduce the size and responsibility of each class.
This class simply delegates the work to the classes which are responsible for the task.
Definition at line 24 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::__construct | ( | FileStreamAccess | $fileStreamAccess, |
FileAccess | $fileAccess, | ||
DirectoryAccess | $directoryAccess | ||
) |
FilesystemFacade constructor.
Creates a new instance of the facade with the provided access classes.
FileStreamAccess | $fileStreamAccess | |
FileAccess | $fileAccess | |
DirectoryAccess | $directoryAccess |
Definition at line 50 of file FilesystemFacade.php.
References ILIAS\Filesystem\FilesystemFacade\$directoryAccess, ILIAS\Filesystem\FilesystemFacade\$fileAccess, and ILIAS\Filesystem\FilesystemFacade\$fileStreamAccess.
ILIAS\Filesystem\FilesystemFacade::copy | ( | $path, | |
$copyPath | |||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 259 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::copyDir | ( | $source, | |
$destination | |||
) |
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 88 of file FilesystemFacade.php.
References $destination, and $source.
ILIAS\Filesystem\FilesystemFacade::createDir | ( | $path, | |
$visibility = Visibility::PUBLIC_ACCESS |
|||
) |
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 79 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::delete | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 232 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::deleteDir | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 97 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::getMimeType | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 124 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::getSize | ( | $path, | |
$fileSizeUnit | |||
) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 142 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::getTimestamp | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 133 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::getVisibility | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 160 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::has | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 115 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::hasDir | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 61 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::listContents | ( | $path = '' , |
|
$recursive = false |
|||
) |
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 70 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::put | ( | $path, | |
$content | |||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 223 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::putStream | ( | $path, | |
FileStream | $stream | ||
) |
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 187 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::read | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 106 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::readAndDelete | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 241 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::readStream | ( | $path | ) |
Implements ILIAS\Filesystem\Provider\FileStreamReadAccess.
Definition at line 169 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::rename | ( | $path, | |
$newPath | |||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 250 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::setVisibility | ( | $path, | |
$visibility | |||
) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 151 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::update | ( | $path, | |
$newContent | |||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 214 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::updateStream | ( | $path, | |
FileStream | $stream | ||
) |
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 196 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::write | ( | $path, | |
$content | |||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 205 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::writeStream | ( | $path, | |
FileStream | $stream | ||
) |
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 178 of file FilesystemFacade.php.
References $path.
|
private |
Definition at line 38 of file FilesystemFacade.php.
Referenced by ILIAS\Filesystem\FilesystemFacade\__construct().
|
private |
Definition at line 34 of file FilesystemFacade.php.
Referenced by ILIAS\Filesystem\FilesystemFacade\__construct().
|
private |
Definition at line 30 of file FilesystemFacade.php.
Referenced by ILIAS\Filesystem\FilesystemFacade\__construct().