|
ILIAS
release_8 Revision v8.24
|
Class FilesystemFacade. More...
Inheritance diagram for ILIAS\Filesystem\FilesystemFacade:
Collaboration diagram for ILIAS\Filesystem\FilesystemFacade:Public Member Functions | |
| __construct (FileStreamAccess $fileStreamAccess, FileAccess $fileAccess, DirectoryAccess $directoryAccess) | |
| FilesystemFacade constructor. More... | |
| hasDir (string $path) | |
| @inheritDoc More... | |
| listContents (string $path='', bool $recursive=false) | |
| @inheritDoc More... | |
| createDir (string $path, string $visibility=Visibility::PUBLIC_ACCESS) | |
| @inheritDoc More... | |
| copyDir (string $source, string $destination) | |
| @inheritDoc More... | |
| deleteDir (string $path) | |
| @inheritDoc More... | |
| read (string $path) | |
| @inheritDoc More... | |
| has (string $path) | |
| @inheritDoc More... | |
| getMimeType (string $path) | |
| @inheritDoc More... | |
| getTimestamp (string $path) | |
| @inheritDoc More... | |
| getSize (string $path, int $fileSizeUnit) | |
| @inheritDoc More... | |
| setVisibility (string $path, string $visibility) | |
| @inheritDoc More... | |
| getVisibility (string $path) | |
| @inheritDoc More... | |
| readStream (string $path) | |
| @inheritDoc More... | |
| writeStream (string $path, FileStream $stream) | |
| @inheritDoc More... | |
| putStream (string $path, FileStream $stream) | |
| @inheritDoc More... | |
| updateStream (string $path, FileStream $stream) | |
| @inheritDoc More... | |
| write (string $path, string $content) | |
| @inheritDoc More... | |
| update (string $path, string $new_content) | |
| @inheritDoc More... | |
| put (string $path, string $content) | |
| @inheritDoc More... | |
| delete (string $path) | |
| @inheritDoc More... | |
| readAndDelete (string $path) | |
| @inheritDoc More... | |
| rename (string $path, string $new_path) | |
| @inheritDoc More... | |
| copy (string $path, string $copy_path) | |
| @inheritDoc More... | |
| finder () | |
| @inheritDoc More... | |
| finder () | |
| readStream (string $path) | |
| Opens a readable stream of the file. More... | |
| writeStream (string $path, FileStream $stream) | |
| Writes the stream to a new file. More... | |
| putStream (string $path, FileStream $stream) | |
| Creates a new file or updates an existing one. More... | |
| updateStream (string $path, FileStream $stream) | |
| Updates an existing file. More... | |
| read (string $path) | |
| Reads a file content to a string. More... | |
| has (string $path) | |
| Checks whether a file exists. More... | |
| getMimeType (string $path) | |
| Get a files mime-type. More... | |
| getTimestamp (string $path) | |
| Get the timestamp of the file. More... | |
| getSize (string $path, int $fileSizeUnit) | |
| Get the size of a file. More... | |
| setVisibility (string $path, string $visibility) | |
| Sets the visibility for a file. More... | |
| getVisibility (string $path) | |
| Get the file visibility. More... | |
| write (string $path, string $content) | |
| Writes the content to a new file. More... | |
| update (string $path, string $new_content) | |
| Updates the content of a file. More... | |
| put (string $path, string $content) | |
| Creates a file or updates an existing one. More... | |
| delete (string $path) | |
| Deletes a file. More... | |
| readAndDelete (string $path) | |
| Reads the entire file content into a string and removes the file afterwards. More... | |
| rename (string $path, string $new_path) | |
| Moves a file from the source to the destination. More... | |
| copy (string $path, string $copy_path) | |
| Copy the source file to a destination. More... | |
| hasDir (string $path) | |
| Checks whether the directory exists or not. More... | |
| listContents (string $path='', bool $recursive=false) | |
| Lists the content of a directory. More... | |
| createDir (string $path, string $visibility=Visibility::PUBLIC_ACCESS) | |
| Create a new directory. More... | |
| copyDir (string $source, string $destination) | |
| Copy all childes of the source recursive to the destination. More... | |
| deleteDir (string $path) | |
| Deletes a directory recursive. More... | |
Private Attributes | |
| FileStreamAccess | $fileStreamAccess |
| FileAccess | $fileAccess |
| DirectoryAccess | $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 41 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 57 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 | $copy_path | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 266 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::copyDir | ( | string | $source, |
| string | $destination | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 95 of file FilesystemFacade.php.
References $source.
| ILIAS\Filesystem\FilesystemFacade::createDir | ( | string | $path, |
| string | $visibility = Visibility::PUBLIC_ACCESS |
||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 86 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::delete | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 239 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::deleteDir | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 104 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::finder | ( | ) |
@inheritDoc
Implements ILIAS\Filesystem\Filesystem.
Definition at line 274 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::getMimeType | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 131 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::getSize | ( | string | $path, |
| int | $fileSizeUnit | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 149 of file FilesystemFacade.php.
References $path, and ILIAS\Data\DataSize\getSize().
Here is the call graph for this function:| ILIAS\Filesystem\FilesystemFacade::getTimestamp | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 140 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::getVisibility | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 167 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::has | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 122 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::hasDir | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 68 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::listContents | ( | string | $path = '', |
| bool | $recursive = false |
||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 77 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::put | ( | string | $path, |
| string | $content | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 230 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::putStream | ( | string | $path, |
| FileStream | $stream | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 194 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::read | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 113 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::readAndDelete | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 248 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::readStream | ( | string | $path | ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileStreamReadAccess.
Definition at line 176 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::rename | ( | string | $path, |
| string | $new_path | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 257 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::setVisibility | ( | string | $path, |
| string | $visibility | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 158 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::update | ( | string | $path, |
| string | $new_content | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 221 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::updateStream | ( | string | $path, |
| FileStream | $stream | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 203 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::write | ( | string | $path, |
| string | $content | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 212 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::writeStream | ( | string | $path, |
| FileStream | $stream | ||
| ) |
@inheritDoc
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 185 of file FilesystemFacade.php.
References $path.
|
private |
Definition at line 45 of file FilesystemFacade.php.
Referenced by ILIAS\Filesystem\FilesystemFacade\__construct().
|
private |
Definition at line 44 of file FilesystemFacade.php.
Referenced by ILIAS\Filesystem\FilesystemFacade\__construct().
|
private |
Definition at line 43 of file FilesystemFacade.php.
Referenced by ILIAS\Filesystem\FilesystemFacade\__construct().