ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 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 | ( | ) |
@inheritDoc
Definition at line 365 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\close().
ILIAS\Filesystem\Stream\Stream::__toString | ( | ) |
@inheritDoc
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.
RuntimeException 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 | ( | ) |
@inheritDoc
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 | ( | ) |
@inheritDoc
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 | ( | ) |
@inheritDoc
Implements Psr\Http\Message\StreamInterface.
Definition at line 185 of file Stream.php.
References ILIAS\Filesystem\Stream\Stream\assertStreamAttached().
ILIAS\Filesystem\Stream\Stream::getContents | ( | ) |
@inheritDoc
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 | ) |
@inheritDoc
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 | ( | ) |
@inheritDoc
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 | ( | ) |
@inheritDoc
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 | ( | ) |
@inheritDoc
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 | ( | ) |
@inheritDoc
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 | ) |
@inheritDoc
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 | ( | ) |
@inheritDoc
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 |
|||
) |
@inheritDoc
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 | ( | ) |
@inheritDoc
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 | ) |
@inheritDoc
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.