Property | Type | Description | |
---|---|---|---|
$resource | resource | ||
$stream | string | resource |
Method | Description | |
---|---|---|
__construct ( string | resource $stream, string $mode = 'r' ) | ||
__toString ( ) | ||
attach ( string | resource $resource, string $mode = 'r' ) | Attach a new stream/resource to the instance. | |
close ( ) | ||
detach ( ) | ||
eof ( ) | ||
getContents ( ) | ||
getMetadata ( $key = null ) | ||
getSize ( ) | ||
isReadable ( ) | ||
isSeekable ( ) | ||
isWritable ( ) | ||
read ( $length ) | ||
rewind ( ) | ||
seek ( $offset, $whence = SEEK_SET ) | ||
tell ( ) | ||
write ( $string ) |
Method | Description | |
---|---|---|
setStream ( string | resource $stream, string $mode = 'r' ) | Set the internal stream resource. |
public __construct ( string | resource $stream, string $mode = 'r' ) | ||
$stream | string | resource | |
$mode | string | Mode with which to open stream |