ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class FilesystemFacade. More...
Public Member Functions | |
__construct (FileStreamAccess $fileStreamAccess, FileAccess $fileAccess, DirectoryAccess $directoryAccess) | |
FilesystemFacade constructor. More... | |
hasDir (string $path) | |
listContents (string $path='', bool $recursive=false) | |
createDir (string $path, string $visibility=Visibility::PUBLIC_ACCESS) | |
copyDir (string $source, string $destination) | |
deleteDir (string $path) | |
read (string $path) | |
has (string $path) | |
getMimeType (string $path) | |
getTimestamp (string $path) | |
getSize (string $path, int $fileSizeUnit) | |
setVisibility (string $path, string $visibility) | |
getVisibility (string $path) | |
readStream (string $path) | |
writeStream (string $path, FileStream $stream) | |
putStream (string $path, FileStream $stream) | |
updateStream (string $path, FileStream $stream) | |
write (string $path, string $content) | |
update (string $path, string $newContent) | |
put (string $path, string $content) | |
delete (string $path) | |
readAndDelete (string $path) | |
rename (string $path, string $newPath) | |
copy (string $path, string $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 26 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 52 of file FilesystemFacade.php.
References ILIAS\Filesystem\FilesystemFacade\$directoryAccess, ILIAS\Filesystem\FilesystemFacade\$fileAccess, and ILIAS\Filesystem\FilesystemFacade\$fileStreamAccess.
ILIAS\Filesystem\FilesystemFacade::copy | ( | string | $path, |
string | $copyPath | ||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 261 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::copyDir | ( | string | $source, |
string | $destination | ||
) |
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 90 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::createDir | ( | string | $path, |
string | $visibility = Visibility::PUBLIC_ACCESS |
||
) |
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 81 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::delete | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 234 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::deleteDir | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 99 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::getMimeType | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 126 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::getSize | ( | string | $path, |
int | $fileSizeUnit | ||
) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 144 of file FilesystemFacade.php.
References ILIAS\Data\DataSize\getSize().
ILIAS\Filesystem\FilesystemFacade::getTimestamp | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 135 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::getVisibility | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 162 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::has | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 117 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::hasDir | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 63 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::listContents | ( | string | $path = '' , |
bool | $recursive = false |
||
) |
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 72 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::put | ( | string | $path, |
string | $content | ||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 225 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::putStream | ( | string | $path, |
FileStream | $stream | ||
) |
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 189 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::read | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 108 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::readAndDelete | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 243 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::readStream | ( | string | $path | ) |
Implements ILIAS\Filesystem\Provider\FileStreamReadAccess.
Definition at line 171 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::rename | ( | string | $path, |
string | $newPath | ||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 252 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::setVisibility | ( | string | $path, |
string | $visibility | ||
) |
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 153 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::update | ( | string | $path, |
string | $newContent | ||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 216 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::updateStream | ( | string | $path, |
FileStream | $stream | ||
) |
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 198 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::write | ( | string | $path, |
string | $content | ||
) |
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 207 of file FilesystemFacade.php.
ILIAS\Filesystem\FilesystemFacade::writeStream | ( | string | $path, |
FileStream | $stream | ||
) |
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 180 of file FilesystemFacade.php.
|
private |
Definition at line 40 of file FilesystemFacade.php.
Referenced by ILIAS\Filesystem\FilesystemFacade\__construct().
|
private |
Definition at line 36 of file FilesystemFacade.php.
Referenced by ILIAS\Filesystem\FilesystemFacade\__construct().
|
private |
Definition at line 32 of file FilesystemFacade.php.
Referenced by ILIAS\Filesystem\FilesystemFacade\__construct().