ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
__construct (private FilesystemOperator $flysystem_operator) | |
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... | |
Definition at line 38 of file FlySystemFileStreamAccess.php.
ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess::__construct | ( | private FilesystemOperator | $flysystem_operator | ) |
Definition at line 40 of file FlySystemFileStreamAccess.php.
ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess::putStream | ( | string | $path, |
FileStream | $stream | ||
) |
Creates a new file or updates an existing one.
If the file is updated its content will be truncated before writing the stream.
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 96 of file FlySystemFileStreamAccess.php.
ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess::readStream | ( | string | $path | ) |
Opens a readable stream of the file.
Please make sure to close the stream after the work is done with Stream::close()
Implements ILIAS\Filesystem\Provider\FileStreamReadAccess.
Definition at line 50 of file FlySystemFileStreamAccess.php.
References ILIAS\Filesystem\Stream\Streams\ofResource().
ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess::updateStream | ( | string | $path, |
FileStream | $stream | ||
) |
Updates an existing file.
The file content will be truncated to 0.
The stream will be closed after the write operation is done. Please note that the resource must be detached from the stream in order to write to the file.
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 123 of file FlySystemFileStreamAccess.php.
ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess::writeStream | ( | string | $path, |
FileStream | $stream | ||
) |
Writes the stream to a new file.
The directory path to the file will be created.
The stream will be closed after the write operation is done. Please note that the resource must be detached from the stream in order to write to the file.
Implements ILIAS\Filesystem\Provider\FileStreamWriteAccess.
Definition at line 71 of file FlySystemFileStreamAccess.php.