ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
__toString () | |
Reads all data from the stream into a string, from the beginning to end. More... | |
close () | |
Closes the stream and any underlying resources. More... | |
detach () | |
Separates any underlying resources from the stream. More... | |
getSize () | |
Get the size of the stream if known. More... | |
tell () | |
Returns the current position of the file read/write pointer. More... | |
eof () | |
Returns true if the stream is at the end of the stream. More... | |
isSeekable () | |
Returns whether or not the stream is seekable. More... | |
seek ($offset, $whence=SEEK_SET) | |
Seek to a position in the stream. More... | |
rewind () | |
Seek to the beginning of the stream. More... | |
isWritable () | |
Returns whether or not the stream is writable. More... | |
write ($string) | |
Write data to the stream. More... | |
isReadable () | |
Returns whether or not the stream is readable. More... | |
read ($length) | |
Read data from the stream. More... | |
getContents () | |
Returns the remaining contents in a string. More... | |
getMetadata ($key=null) | |
Get stream metadata as an associative array or retrieve a specific key. 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 | |
$readable | |
$writeable | |
$seekable | |
$stream | |
$size | |
$uri | |
$customMetadata | |
Static Private Attributes | |
static | $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 $options, ILIAS\Filesystem\Stream\Stream\$stream, and ILIAS\Filesystem\Stream\Stream\getMetadata().
ILIAS\Filesystem\Stream\Stream::__destruct | ( | ) |
@inheritDoc
Definition at line 364 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\close().
ILIAS\Filesystem\Stream\Stream::__toString | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 349 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\getContents(), and ILIAS\Filesystem\Stream\Stream\rewind().
|
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 380 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().
ILIAS\Filesystem\Stream\Stream::close | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
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().
ILIAS\Filesystem\Stream\Stream::detach | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 123 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$stream.
Referenced by ILIAS\Filesystem\Stream\Stream\close().
ILIAS\Filesystem\Stream\Stream::eof | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 184 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached().
ILIAS\Filesystem\Stream\Stream::getContents | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 299 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().
ILIAS\Filesystem\Stream\Stream::getMetadata | ( | $key = null | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 316 of file Stream.php.
References $key.
Referenced by ILIAS\Filesystem\Stream\Stream\__construct().
ILIAS\Filesystem\Stream\Stream::getSize | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 135 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$size, and $stats.
ILIAS\Filesystem\Stream\Stream::isReadable | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 262 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$readable.
Referenced by ILIAS\Filesystem\Stream\Stream\read().
ILIAS\Filesystem\Stream\Stream::isSeekable | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 195 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$seekable.
Referenced by ILIAS\Filesystem\Stream\Stream\seek().
ILIAS\Filesystem\Stream\Stream::isWritable | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 230 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$writeable.
Referenced by ILIAS\Filesystem\Stream\Stream\write().
ILIAS\Filesystem\Stream\Stream::read | ( | $length | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 271 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached(), ILIAS\Filesystem\Util\PHPStreamFunctions\fread(), and ILIAS\Filesystem\Stream\Stream\isReadable().
ILIAS\Filesystem\Stream\Stream::rewind | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 221 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\seek().
Referenced by ILIAS\Filesystem\Stream\Stream\__toString().
ILIAS\Filesystem\Stream\Stream::seek | ( | $offset, | |
$whence = SEEK_SET |
|||
) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 204 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().
ILIAS\Filesystem\Stream\Stream::tell | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 167 of file Stream.php.
References $result, ILIAS\Filesystem\Stream\Stream\assertStreamAttached(), and ILIAS\Filesystem\Util\PHPStreamFunctions\ftell().
ILIAS\Filesystem\Stream\Stream::write | ( | $string | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 239 of file Stream.php.
References $result, ILIAS\Filesystem\Stream\Stream\assertStreamAttached(), ILIAS\Filesystem\Util\PHPStreamFunctions\fwrite(), and ILIAS\Filesystem\Stream\Stream\isWritable().
|
staticprivate |
Definition at line 23 of file Stream.php.
|
private |
Definition at line 73 of file Stream.php.
|
private |
Definition at line 49 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isReadable().
|
private |
Definition at line 57 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isSeekable().
|
private |
Definition at line 65 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\getSize().
|
private |
Definition at line 61 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 53 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isWritable().
const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_READ = 01 |
Definition at line 19 of file Stream.php.
const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_READ_WRITE = 03 |
Definition at line 21 of file Stream.php.
const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_WRITE = 02 |
Definition at line 20 of file Stream.php.