Property | Type | Description | |
---|---|---|---|
$context | Current stream context. |
Property | Type | Description | |
---|---|---|---|
$position | Position in the current response body. | ||
$requestCallback | Callback which will be executed when a request is intercepted. | ||
$response | |||
$status | Current status of this hook, either enabled or disabled. |
Method | Description | |
---|---|---|
disable ( ) | ||
enable ( Closure $requestCallback ) | ||
isEnabled ( ) | ||
stream_eof ( ) : boolean | Tests for end-of-file on a file pointer. | |
stream_metadata ( string $path, integer $option, mixed $var ) : boolean | Change stream options. | |
stream_open ( string $path, string $mode, integer $options, string &$opened_path ) : boolean | This method is called immediately after the wrapper is initialized (f.e. by fopen() and file_get_contents()). | |
stream_read ( integer $count ) : string | Read from stream. | |
stream_seek ( integer $offset, integer $whence ) : boolean | Seeks to specific location in a stream. | |
stream_stat ( ) : array | Retrieve information about a file resource. | |
stream_tell ( ) : integer | Retrieve the current position of a stream. | |
stream_write ( string $data ) : integer | Write to stream. | |
url_stat ( $path, $flags ) : array | Retrieve information about a file resource. |
public stream_eof ( ) : boolean | ||
return | boolean | Should return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise. |
public stream_open ( string $path, string $mode, integer $options, string &$opened_path ) : boolean | ||
$path | string | Specifies the URL that was passed to the original function. |
$mode | string | The mode used to open the file, as detailed for fopen(). |
$options | integer | Holds additional flags set by the streams API. |
$opened_path | string | If the path is opened successfully, and STREAM_USE_PATH is set. |
return | boolean | Returns TRUE on success or FALSE on failure. |
public stream_read ( integer $count ) : string | ||
$count | integer | How many bytes of data from the current position should be returned. |
return | string | If there are less than count bytes available, return as many as are available. If no more data is available, return either FALSE or an empty string. |
public stream_seek ( integer $offset, integer $whence ) : boolean | ||
$offset | integer | The stream offset to seek to. |
$whence | integer | Possible values: SEEK_SET - Set position equal to offset bytes. SEEK_CUR - Set position to current location plus offset. SEEK_END - Set position to end-of-file plus offset. |
return | boolean | Return TRUE if the position was updated, FALSE otherwise. |
public stream_stat ( ) : array | ||
return | array | See stat(). |
public stream_tell ( ) : integer | ||
return | integer | Should return the current position of the stream. |
public stream_write ( string $data ) : integer | ||
$data | string | Should be stored into the underlying stream. |
return | integer |
protected static $requestCallback |