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) | |
@inheritDoc More... | |
listContents ($path='', $recursive=false) | |
@inheritDoc More... | |
createDir ($path, $visibility=Visibility::PUBLIC_ACCESS) | |
@inheritDoc More... | |
copyDir ($source, $destination) | |
@inheritDoc More... | |
deleteDir ($path) | |
@inheritDoc More... | |
read ($path) | |
@inheritDoc More... | |
has ($path) | |
@inheritDoc More... | |
getMimeType ($path) | |
@inheritDoc More... | |
getTimestamp ($path) | |
@inheritDoc More... | |
getSize ($path, $fileSizeUnit) | |
@inheritDoc More... | |
setVisibility ($path, $visibility) | |
@inheritDoc More... | |
getVisibility ($path) | |
@inheritDoc More... | |
readStream ($path) | |
@inheritDoc More... | |
writeStream ($path, FileStream $stream) | |
@inheritDoc More... | |
putStream ($path, FileStream $stream) | |
@inheritDoc More... | |
updateStream ($path, FileStream $stream) | |
@inheritDoc More... | |
write ($path, $content) | |
@inheritDoc More... | |
update ($path, $newContent) | |
@inheritDoc More... | |
put ($path, $content) | |
@inheritDoc More... | |
delete ($path) | |
@inheritDoc More... | |
readAndDelete ($path) | |
@inheritDoc More... | |
rename ($path, $newPath) | |
@inheritDoc More... | |
copy ($path, $copyPath) | |
@inheritDoc More... | |
readStream ($path) | |
Opens a readable stream of the file. More... | |
writeStream ($path, FileStream $stream) | |
Writes the stream to a new file. More... | |
putStream ($path, FileStream $stream) | |
Creates a new file or updates an existing one. More... | |
updateStream ($path, FileStream $stream) | |
Updates an existing file. More... | |
read ($path) | |
Reads a file content to a string. More... | |
has ($path) | |
Checks whether a file exists. More... | |
getMimeType ($path) | |
Get a files mime-type. More... | |
getTimestamp ($path) | |
Get the timestamp of the file. More... | |
getSize ($path, $fileSizeUnit) | |
Get the size of a file. More... | |
setVisibility ($path, $visibility) | |
Sets the visibility for a file. More... | |
getVisibility ($path) | |
Get the file visibility. More... | |
write ($path, $content) | |
Writes the content to a new file. More... | |
update ($path, $newContent) | |
Updates the content of a file. More... | |
put ($path, $content) | |
Creates a file or updates an existing one. More... | |
delete ($path) | |
Deletes a file. More... | |
readAndDelete ($path) | |
Reads the entire file content into a string and removes the file afterwards. More... | |
rename ($path, $newPath) | |
Moves a file from the source to the destination. More... | |
copy ($path, $copyPath) | |
Copy the source file to a destination. More... | |
hasDir ($path) | |
Checks whether the directory exists or not. More... | |
listContents ($path='', $recursive=false) | |
Lists the content of a directory. More... | |
createDir ($path, $visibility=Visibility::PUBLIC_ACCESS) | |
Create a new directory. More... | |
copyDir ($source, $destination) | |
Copy all childes of the source recursive to the destination. More... | |
deleteDir ($path) | |
Deletes a directory recursive. More... | |
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 | |||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 259 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::copyDir | ( | $source, | |
$destination | |||
) |
@inheritDoc
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 |
|||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 79 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::delete | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 232 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::deleteDir | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 97 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::getMimeType | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 124 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::getSize | ( | $path, | |
$fileSizeUnit | |||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 142 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::getTimestamp | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 133 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::getVisibility | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 160 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::has | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 115 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::hasDir | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 61 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::listContents | ( | $path = '' , |
|
$recursive = false |
|||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 70 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::put | ( | $path, | |
$content | |||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 223 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::putStream | ( | $path, | |
FileStream | $stream | ||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 187 of file FilesystemFacade.php.
References $path, and GuzzleHttp\Psr7\$stream.
ILIAS\Filesystem\FilesystemFacade::read | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 106 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::readAndDelete | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 241 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::readStream | ( | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileStreamReadAccess.
Definition at line 169 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::rename | ( | $path, | |
$newPath | |||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 250 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::setVisibility | ( | $path, | |
$visibility | |||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 151 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::update | ( | $path, | |
$newContent | |||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 214 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::updateStream | ( | $path, | |
FileStream | $stream | ||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 196 of file FilesystemFacade.php.
References $path, and GuzzleHttp\Psr7\$stream.
ILIAS\Filesystem\FilesystemFacade::write | ( | $path, | |
$content | |||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 205 of file FilesystemFacade.php.
References $path.
ILIAS\Filesystem\FilesystemFacade::writeStream | ( | $path, | |
FileStream | $stream | ||
) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 178 of file FilesystemFacade.php.
References $path, and GuzzleHttp\Psr7\$stream.
|
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().