| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
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. More...
 Inheritance diagram for ILIAS\Filesystem\FilesystemFacade:
 Collaboration diagram for ILIAS\Filesystem\FilesystemFacade:Public Member Functions | |
| __construct (private FileStreamAccess $fileStreamAccess, private FileAccess $fileAccess, private 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 $unit) | |
| 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 $new_content) | |
| put (string $path, string $content) | |
| delete (string $path) | |
| readAndDelete (string $path) | |
| rename (string $path, string $new_path) | |
| copy (string $path, string $copy_path) | |
| finder () | |
  Public Member Functions inherited from ILIAS\Filesystem\Provider\FileStreamWriteAccess | |
| 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... | |
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 39 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::__construct | ( | private FileStreamAccess | $fileStreamAccess, | 
| private FileAccess | $fileAccess, | ||
| private 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.
| ILIAS\Filesystem\FilesystemFacade::copy | ( | string | $path, | 
| string | $copy_path | ||
| ) | 
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 236 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::copyDir | ( | string | $source, | 
| string | $destination | ||
| ) | 
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 84 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::createDir | ( | string | $path, | 
| string | $visibility = Visibility::PUBLIC_ACCESS  | 
        ||
| ) | 
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 76 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::delete | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 212 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::deleteDir | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\DirectoryWriteAccess.
Definition at line 92 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::finder | ( | ) | 
Implements ILIAS\Filesystem\Filesystem.
Definition at line 244 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::getMimeType | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 116 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::getSize | ( | string | $path, | 
| int | $unit | ||
| ) | 
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 132 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::getTimestamp | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 124 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::getVisibility | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 148 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::has | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 108 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::hasDir | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 60 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::listContents | ( | string | $path = '',  | 
        
| bool | $recursive = false  | 
        ||
| ) | 
Implements ILIAS\Filesystem\Provider\DirectoryReadAccess.
Definition at line 68 of file FilesystemFacade.php.
References $path.
| ILIAS\Filesystem\FilesystemFacade::put | ( | string | $path, | 
| string | $content | ||
| ) | 
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 204 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::putStream | ( | string | $path, | 
| FileStream | $stream | ||
| ) | 
Definition at line 172 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::read | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 100 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::readAndDelete | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 220 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::readStream | ( | string | $path | ) | 
Implements ILIAS\Filesystem\Provider\FileStreamReadAccess.
Definition at line 156 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::rename | ( | string | $path, | 
| string | $new_path | ||
| ) | 
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 228 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::setVisibility | ( | string | $path, | 
| string | $visibility | ||
| ) | 
Implements ILIAS\Filesystem\Provider\FileReadAccess.
Definition at line 140 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::update | ( | string | $path, | 
| string | $new_content | ||
| ) | 
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 196 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::updateStream | ( | string | $path, | 
| FileStream | $stream | ||
| ) | 
Definition at line 180 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::write | ( | string | $path, | 
| string | $content | ||
| ) | 
Implements ILIAS\Filesystem\Provider\FileWriteAccess.
Definition at line 188 of file FilesystemFacade.php.
| ILIAS\Filesystem\FilesystemFacade::writeStream | ( | string | $path, | 
| FileStream | $stream | ||
| ) | 
Definition at line 164 of file FilesystemFacade.php.