ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 |
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, ILIAS\Filesystem\Stream\Stream\getMetadata(), and size.
ILIAS\Filesystem\Stream\Stream::__destruct | ( | ) |
Definition at line 364 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\close().
ILIAS\Filesystem\Stream\Stream::__toString | ( | ) |
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.
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 | ( | ) |
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 | ( | ) |
Implements Psr\Http\Message\StreamInterface.
Definition at line 123 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$stream, and size.
Referenced by ILIAS\Filesystem\Stream\Stream\close().
ILIAS\Filesystem\Stream\Stream::eof | ( | ) |
Implements Psr\Http\Message\StreamInterface.
Definition at line 184 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached().
ILIAS\Filesystem\Stream\Stream::getContents | ( | ) |
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 | ) |
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 | ( | ) |
Implements Psr\Http\Message\StreamInterface.
Definition at line 135 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$size, $stats, and size.
ILIAS\Filesystem\Stream\Stream::isReadable | ( | ) |
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 | ( | ) |
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 | ( | ) |
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 | ) |
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 | ( | ) |
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 |
|||
) |
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 | ( | ) |
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 | ) |
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(), ILIAS\Filesystem\Stream\Stream\isWritable(), and size.
|
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.