ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Interface FileStreamWriteAccess. More...
Public Member Functions | |
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... | |
Interface FileStreamWriteAccess.
This interface describes the write operations for the streaming filesystem access.
Definition at line 24 of file FileStreamWriteAccess.php.
ILIAS\Filesystem\Provider\FileStreamWriteAccess::putStream | ( | $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.
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.
string | $path | The file which should be used to write the stream into. |
FileStream | $stream | The stream which should be written to the file. |
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess.
ILIAS\Filesystem\Provider\FileStreamWriteAccess::updateStream | ( | $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.
string | $path | The path to the file which should be updated. |
FileStream | $stream | The stream which should be used to update the file content. |
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess.
ILIAS\Filesystem\Provider\FileStreamWriteAccess::writeStream | ( | $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.
string | $path | The file which should be used to write the stream into. |
FileStream | $stream | The stream which should be written into the new file. |
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileStreamAccess.