Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($filename, $mode) | |
![]() | |
__toString () | |
close () | |
detach () | |
eof () | |
getContents () | |
getMetadata ($key=null) | |
getSize () | |
isReadable () | |
isSeekable () | |
isWritable () | |
read ($length) | |
rewind () | |
seek ($offset, $whence=SEEK_SET) | |
tell () | |
write ($string) | |
Protected Member Functions | |
createStream () | |
Lazily reads or writes to a file that is opened only after an IO operation take place on the stream.
Definition at line 10 of file LazyOpenStream.php.
GuzzleHttp\Psr7\LazyOpenStream::__construct | ( | $filename, | |
$mode | |||
) |
string | $filename | File to lazily open |
string | $mode | fopen mode to use when opening the stream |
Definition at line 30 of file LazyOpenStream.php.
|
protected |
Creates the underlying stream lazily when required.
Definition at line 41 of file LazyOpenStream.php.
References GuzzleHttp\Psr7\stream_for(), and GuzzleHttp\Psr7\try_fopen().