ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 83 of file Stream.php.
References PHPMailer\PHPMailer\$options, ILIAS\Filesystem\Stream\Stream\$stream, ILIAS\Filesystem\Stream\Stream\getMetadata(), and size.
ILIAS\Filesystem\Stream\Stream::__destruct | ( | ) |
Definition at line 365 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\close().
ILIAS\Filesystem\Stream\Stream::__toString | ( | ) |
Implements Psr\Http\Message\StreamInterface.
Definition at line 350 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 381 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 111 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 124 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 185 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached().
ILIAS\Filesystem\Stream\Stream::getContents | ( | ) |
Implements Psr\Http\Message\StreamInterface.
Definition at line 300 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 317 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 136 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\$size, Sabre\VObject\$stats, and size.
ILIAS\Filesystem\Stream\Stream::isReadable | ( | ) |
Implements Psr\Http\Message\StreamInterface.
Definition at line 263 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 196 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 231 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 272 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 222 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 205 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 168 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 240 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 24 of file Stream.php.
|
private |
Definition at line 74 of file Stream.php.
|
private |
Definition at line 50 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isReadable().
|
private |
Definition at line 58 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isSeekable().
|
private |
Definition at line 66 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\getSize().
|
private |
Definition at line 62 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\__construct(), and ILIAS\Filesystem\Stream\Stream\detach().
|
private |
Definition at line 70 of file Stream.php.
|
private |
Definition at line 54 of file Stream.php.
Referenced by ILIAS\Filesystem\Stream\Stream\isWritable().
const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_READ = 01 |
Definition at line 20 of file Stream.php.
const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_READ_WRITE = 03 |
Definition at line 22 of file Stream.php.
const ILIAS\Filesystem\Stream\Stream::MASK_ACCESS_WRITE = 02 |
Definition at line 21 of file Stream.php.