ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
static | __construct ($stream, $options=[]) |
This constructor accepts an associative array of options. More... | |
__get ($name) | |
__destruct () | |
Closes the stream when the destructed. More... | |
__toString () | |
Reads all data from the stream into a string, from the beginning to end. More... | |
getContents () | |
Returns the remaining contents in a string. 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... | |
isReadable () | |
Returns whether or not the stream is readable. More... | |
isWritable () | |
Returns whether or not the stream is writable. More... | |
isSeekable () | |
Returns whether or not the stream is seekable. More... | |
eof () | |
Returns true if the stream is at the end of the stream. More... | |
tell () | |
Returns the current position of the file read/write pointer. More... | |
rewind () | |
Seek to the beginning of the stream. More... | |
seek ($offset, $whence=SEEK_SET) | |
Seek to a position in the stream. More... | |
read ($length) | |
Read data from the stream. More... | |
write ($string) | |
Write data to the stream. More... | |
getMetadata ($key=null) | |
Get stream metadata as an associative array or retrieve a specific key. More... | |
Private Attributes | |
$stream | |
$size | |
$seekable | |
$readable | |
$writable | |
$uri | |
$customMetadata | |
Static Private Attributes | |
static | $readWriteHash |
Definition at line 11 of file Stream.php.
static GuzzleHttp\Psr7\Stream::__construct | ( | $stream, | |
$options = [] |
|||
) |
This constructor accepts an associative array of options.
resource | $stream | Stream resource to wrap. |
array | $options | Associative array of options. |
Definition at line 51 of file Stream.php.
References $options, GuzzleHttp\Psr7\Stream\$stream, GuzzleHttp\Psr7\Stream\getMetadata(), and size.
GuzzleHttp\Psr7\Stream::__destruct | ( | ) |
Closes the stream when the destructed.
Definition at line 85 of file Stream.php.
References GuzzleHttp\Psr7\Stream\close().
GuzzleHttp\Psr7\Stream::__get | ( | $name | ) |
GuzzleHttp\Psr7\Stream::__toString | ( | ) |
Reads all data from the stream into a string, from the beginning to end.
This method MUST attempt to seek to the beginning of the stream before reading data and read the stream until the end is reached.
Warning: This could attempt to load a large amount of data into memory.
This method MUST NOT raise an exception in order to conform with PHP's string casting operations.
Implements Psr\Http\Message\StreamInterface.
Definition at line 90 of file Stream.php.
References GuzzleHttp\Psr7\Stream\seek().
GuzzleHttp\Psr7\Stream::close | ( | ) |
Closes the stream and any underlying resources.
Implements Psr\Http\Message\StreamInterface.
Definition at line 111 of file Stream.php.
References GuzzleHttp\Psr7\Stream\detach().
Referenced by GuzzleHttp\Psr7\Stream\__destruct().
GuzzleHttp\Psr7\Stream::detach | ( | ) |
Separates any underlying resources from the stream.
After the stream has been detached, the stream is in an unusable state.
Implements Psr\Http\Message\StreamInterface.
Definition at line 121 of file Stream.php.
References $result, GuzzleHttp\Psr7\Stream\$stream, and size.
Referenced by GuzzleHttp\Psr7\Stream\close().
GuzzleHttp\Psr7\Stream::eof | ( | ) |
Returns true if the stream is at the end of the stream.
Implements Psr\Http\Message\StreamInterface.
Definition at line 174 of file Stream.php.
GuzzleHttp\Psr7\Stream::getContents | ( | ) |
Returns the remaining contents in a string.
Implements Psr\Http\Message\StreamInterface.
Definition at line 100 of file Stream.php.
References $contents.
GuzzleHttp\Psr7\Stream::getMetadata | ( | $key = null | ) |
Get stream metadata as an associative array or retrieve a specific key.
The keys returned are identical to the keys returned from PHP's stream_get_meta_data() function.
Implements Psr\Http\Message\StreamInterface.
Definition at line 243 of file Stream.php.
References $key.
Referenced by GuzzleHttp\Psr7\Stream\__construct().
GuzzleHttp\Psr7\Stream::getSize | ( | ) |
Get the size of the stream if known.
Implements Psr\Http\Message\StreamInterface.
Definition at line 135 of file Stream.php.
References GuzzleHttp\Psr7\Stream\$size, $stats, and size.
GuzzleHttp\Psr7\Stream::isReadable | ( | ) |
Returns whether or not the stream is readable.
Implements Psr\Http\Message\StreamInterface.
Definition at line 159 of file Stream.php.
References GuzzleHttp\Psr7\Stream\$readable.
GuzzleHttp\Psr7\Stream::isSeekable | ( | ) |
Returns whether or not the stream is seekable.
Implements Psr\Http\Message\StreamInterface.
Definition at line 169 of file Stream.php.
References GuzzleHttp\Psr7\Stream\$seekable.
GuzzleHttp\Psr7\Stream::isWritable | ( | ) |
Returns whether or not the stream is writable.
Implements Psr\Http\Message\StreamInterface.
Definition at line 164 of file Stream.php.
References GuzzleHttp\Psr7\Stream\$writable.
GuzzleHttp\Psr7\Stream::read | ( | $length | ) |
Read data from the stream.
int | $length | Read up to $length bytes from the object and return them. Fewer than $length bytes may be returned if underlying stream call returns fewer bytes. |
Implements Psr\Http\Message\StreamInterface.
Definition at line 205 of file Stream.php.
GuzzleHttp\Psr7\Stream::rewind | ( | ) |
Seek to the beginning of the stream.
If the stream is not seekable, this method will raise an exception; otherwise, it will perform a seek(0).
Implements Psr\Http\Message\StreamInterface.
Definition at line 190 of file Stream.php.
References GuzzleHttp\Psr7\Stream\seek().
GuzzleHttp\Psr7\Stream::seek | ( | $offset, | |
$whence = SEEK_SET |
|||
) |
Seek to a position in the stream.
Implements Psr\Http\Message\StreamInterface.
Definition at line 195 of file Stream.php.
Referenced by GuzzleHttp\Psr7\Stream\__toString(), and GuzzleHttp\Psr7\Stream\rewind().
GuzzleHttp\Psr7\Stream::tell | ( | ) |
Returns the current position of the file read/write pointer.
Implements Psr\Http\Message\StreamInterface.
Definition at line 179 of file Stream.php.
References $result.
GuzzleHttp\Psr7\Stream::write | ( | $string | ) |
Write data to the stream.
string | $string | The string that is to be written. |
Implements Psr\Http\Message\StreamInterface.
Definition at line 226 of file Stream.php.
|
private |
Definition at line 19 of file Stream.php.
|
private |
Definition at line 16 of file Stream.php.
Referenced by GuzzleHttp\Psr7\Stream\isReadable().
|
staticprivate |
Definition at line 22 of file Stream.php.
|
private |
Definition at line 15 of file Stream.php.
Referenced by GuzzleHttp\Psr7\Stream\isSeekable().
|
private |
Definition at line 14 of file Stream.php.
Referenced by GuzzleHttp\Psr7\Stream\getSize().
|
private |
Definition at line 13 of file Stream.php.
Referenced by GuzzleHttp\Psr7\Stream\__construct(), and GuzzleHttp\Psr7\Stream\detach().
|
private |
Definition at line 18 of file Stream.php.
|
private |
Definition at line 17 of file Stream.php.
Referenced by GuzzleHttp\Psr7\Stream\isWritable().