|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Inheritance diagram for ILIAS\Filesystem\Stream\Stream:
Collaboration diagram for ILIAS\Filesystem\Stream\Stream:Public Member Functions | |
| __construct ($stream, StreamOptions $options=null) | |
| Stream constructor. More... | |
| close () | |
| detach () | |
| getSize () | |
| tell () | |
| eof () | |
| isSeekable () | |
| seek ($offset, $whence=SEEK_SET) | |
| rewind () | |
| isWritable () | |
| write ($string) | |
| isReadable () | |
| read ($length) | |
| getContents () | |
| getMetadata ($key=null) | |
| __toString () | |
| __destruct () | |
Data Fields | |
| const | MASK_ACCESS_READ = 01 |
| const | MASK_ACCESS_WRITE = 02 |
| const | MASK_ACCESS_READ_WRITE = 03 |
Protected Member Functions | |
| assertStreamAttached () | |
| Checks if the stream is attached to the wrapper. More... | |
Protected Attributes | |
| static array string | $_mode = null |
| bool | $readable |
| bool | $writeable |
| bool | $seekable |
| $stream | |
| int | $size = null |
| string | $uri = null |
| array | $customMetadata |
Static Protected Attributes | |
| static array | $accessMap |
Definition at line 29 of file Stream.php.
| ILIAS\Filesystem\Stream\Stream::__construct | ( | $stream, | |
| StreamOptions | $options = null |
||
| ) |
Stream constructor.
| resource | $stream | The resource which should be wrapped by the Stream. |
| \ILIAS\Filesystem\Stream\StreamOptions | null | $options | The additional options which are accessible via getMetadata |
Definition at line 79 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$stream, and ILIAS\Filesystem\Stream\Stream\getMetadata().
Here is the call graph for this function:| ILIAS\Filesystem\Stream\Stream::__destruct | ( | ) |
Definition at line 352 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\close().
Here is the call graph for this function:| ILIAS\Filesystem\Stream\Stream::__toString | ( | ) |
Definition at line 338 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\getContents(), and ILIAS\Filesystem\Stream\Stream\rewind().
Here is the call graph for this function:
|
protected |
Checks if the stream is attached to the wrapper.
An exception if thrown if the stream is already detached.
Definition at line 366 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\eof(), ILIAS\Filesystem\Stream\Stream\getContents(), ILIAS\Filesystem\Stream\Stream\read(), ILIAS\Filesystem\Stream\Stream\seek(), ILIAS\Filesystem\Stream\Stream\tell(), and ILIAS\Filesystem\Stream\Stream\write().
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::close | ( | ) |
Definition at line 114 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\detach(), and ILIAS\Filesystem\Util\PHPStreamFunctions\fclose().
Referenced by ILIAS\Filesystem\Stream\Stream\__destruct().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::detach | ( | ) |
Definition at line 126 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$stream.
Referenced by ILIAS\Filesystem\Stream\Stream\close(), ILIAS\Filesystem\Stream\Streams\ofPsr7Stream(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\Extract\General\readImage(), and ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\Extract\PDF\readImage().
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::eof | ( | ) |
Definition at line 183 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached().
Here is the call graph for this function:| ILIAS\Filesystem\Stream\Stream::getContents | ( | ) |
Definition at line 290 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached(), and ILIAS\Filesystem\Util\PHPStreamFunctions\stream_get_contents().
Referenced by ILIAS\Filesystem\Stream\Stream\__toString().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::getMetadata | ( | $key = null | ) |
Definition at line 306 of file Stream.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by ILIAS\Filesystem\Stream\Stream\__construct(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\Extract\Video\readImage(), and ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\Extract\PDF\readImage().
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::getSize | ( | ) |
| ILIAS\Filesystem\Stream\Stream::isReadable | ( | ) |
Definition at line 255 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$readable.
Referenced by ILIAS\Filesystem\Stream\Stream\read().
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::isSeekable | ( | ) |
Definition at line 193 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$seekable.
Referenced by ILIAS\Filesystem\Stream\Stream\seek().
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::isWritable | ( | ) |
Definition at line 225 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$writeable.
Referenced by ILIAS\Filesystem\Stream\Stream\write().
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::read | ( | $length | ) |
Definition at line 263 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached(), ILIAS\Filesystem\Util\PHPStreamFunctions\fread(), and ILIAS\Filesystem\Stream\Stream\isReadable().
Here is the call graph for this function:| ILIAS\Filesystem\Stream\Stream::rewind | ( | ) |
Definition at line 217 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\seek().
Referenced by ILIAS\Filesystem\Stream\Stream\__toString().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::seek | ( | $offset, | |
$whence = SEEK_SET |
|||
| ) |
Definition at line 201 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached(), ILIAS\Filesystem\Util\PHPStreamFunctions\fseek(), and ILIAS\Filesystem\Stream\Stream\isSeekable().
Referenced by ILIAS\Filesystem\Stream\Stream\rewind().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::tell | ( | ) |
Definition at line 167 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached(), and ILIAS\Filesystem\Util\PHPStreamFunctions\ftell().
Here is the call graph for this function:| ILIAS\Filesystem\Stream\Stream::write | ( | $string | ) |
Definition at line 233 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached(), ILIAS\Filesystem\Util\PHPStreamFunctions\fwrite(), and ILIAS\Filesystem\Stream\Stream\isWritable().
Here is the call graph for this function:
|
protected |
Definition at line 57 of file Stream.php.
|
staticprotected |
Definition at line 35 of file Stream.php.
|
protected |
Definition at line 71 of file Stream.php.
|
protected |
Definition at line 59 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isReadable().
|
protected |
Definition at line 61 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isSeekable().
|
protected |
Definition at line 66 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\getSize().
|
protected |
Definition at line 65 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\__construct(), and ILIAS\Filesystem\Stream\Stream\detach().
|
protected |
Definition at line 67 of file Stream.php.
|
protected |
Definition at line 60 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isWritable().
| const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_READ = 01 |
Definition at line 31 of file Stream.php.
| const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_READ_WRITE = 03 |
Definition at line 33 of file Stream.php.
| const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_WRITE = 02 |
Definition at line 32 of file Stream.php.