|
ILIAS
release_8 Revision v8.24
|
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 () | |
| @inheritDoc More... | |
| detach () | |
| @inheritDoc More... | |
| getSize () | |
| @inheritDoc More... | |
| tell () | |
| @inheritDoc More... | |
| eof () | |
| @inheritDoc More... | |
| isSeekable () | |
| @inheritDoc More... | |
| seek ($offset, $whence=SEEK_SET) | |
| @inheritDoc More... | |
| rewind () | |
| @inheritDoc More... | |
| isWritable () | |
| @inheritDoc More... | |
| write ($string) | |
| @inheritDoc More... | |
| isReadable () | |
| @inheritDoc More... | |
| read ($length) | |
| @inheritDoc More... | |
| getContents () | |
| @inheritDoc More... | |
| getMetadata ($key=null) | |
| @inheritDoc More... | |
| __toString () | |
| @inheritDoc More... | |
| __destruct () | |
| @inheritDoc More... | |
Data Fields | |
| const | MASK_ACCESS_READ = 01 |
| const | MASK_ACCESS_WRITE = 02 |
| const | MASK_ACCESS_READ_WRITE = 03 |
Private Member Functions | |
| assertStreamAttached () | |
| Checks if the stream is attached to the wrapper. More... | |
Private Attributes | |
| bool | $readable |
| bool | $writeable |
| bool | $seekable |
| $stream | |
| int | $size = null |
| string | $uri = null |
| array | $customMetadata |
Static Private Attributes | |
| static array | $accessMap |
| ILIAS\Filesystem\Stream\Stream::__construct | ( | $stream, | |
| StreamOptions | $options = null |
||
| ) |
Stream constructor.
| resource | $stream | The resource which should be wrapped by the Stream. |
| StreamOptions | $options | The additional options which are accessible via getMetadata |
Definition at line 82 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 | ( | ) |
@inheritDoc
Definition at line 363 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\close().
Here is the call graph for this function:| ILIAS\Filesystem\Stream\Stream::__toString | ( | ) |
@inheritDoc
Definition at line 348 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\getContents(), and ILIAS\Filesystem\Stream\Stream\rewind().
Here is the call graph for this function:
|
private |
Checks if the stream is attached to the wrapper.
An exception if thrown if the stream is already detached.
RuntimeException Thrown if the stream is already detached.
Definition at line 379 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 | ( | ) |
@inheritDoc
Definition at line 110 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 | ( | ) |
@inheritDoc
Definition at line 123 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$stream.
Referenced by ILIAS\Filesystem\Stream\Stream\close(), and ILIAS\Filesystem\Stream\Streams\ofPsr7Stream().
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::eof | ( | ) |
@inheritDoc
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 | ( | ) |
@inheritDoc
Definition at line 298 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 | ) |
@inheritDoc
Definition at line 315 of file Stream.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by ILIAS\Filesystem\Stream\Stream\__construct().
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::getSize | ( | ) |
@inheritDoc
Definition at line 135 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$size.
| ILIAS\Filesystem\Stream\Stream::isReadable | ( | ) |
@inheritDoc
Definition at line 261 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 | ( | ) |
@inheritDoc
Definition at line 194 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 | ( | ) |
@inheritDoc
Definition at line 229 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 | ) |
@inheritDoc
Definition at line 270 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached(), ILIAS\Filesystem\Util\PHPStreamFunctions\fread(), and ILIAS\Filesystem\Stream\Stream\isReadable().
Referenced by ILIAS\ResourceStorage\Consumer\StreamAccess\TokenStream\getMimeType().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Stream\Stream::rewind | ( | ) |
@inheritDoc
Definition at line 220 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\seek().
Referenced by ILIAS\Filesystem\Stream\Stream\__toString(), and ILIAS\ResourceStorage\Consumer\StreamAccess\TokenStream\getMimeType().
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 |
|||
| ) |
@inheritDoc
Definition at line 203 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 | ( | ) |
@inheritDoc
Definition at line 166 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 | ) |
@inheritDoc
Definition at line 238 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:
|
staticprivate |
Definition at line 38 of file Stream.php.
|
private |
Definition at line 73 of file Stream.php.
|
private |
Definition at line 61 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isReadable().
|
private |
Definition at line 63 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isSeekable().
|
private |
Definition at line 68 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\getSize().
|
private |
Definition at line 67 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\__construct(), and ILIAS\Filesystem\Stream\Stream\detach().
|
private |
Definition at line 69 of file Stream.php.
|
private |
Definition at line 62 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isWritable().
| const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_READ = 01 |
Definition at line 34 of file Stream.php.
| const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_READ_WRITE = 03 |
Definition at line 36 of file Stream.php.
| const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_WRITE = 02 |
Definition at line 35 of file Stream.php.