PhpStreamWrapperInterface
interface PhpStreamWrapperInterface (View source)
Defines a generic PHP stream wrapper interface.
Methods
No description
No description
No description
No description
No description
No description
No description
Retrieve the underlying stream resource.
Closes stream.
No description
No description
No description
Sets metadata on the stream.
No description
No description
Seeks to specific location in a stream.
Change stream options.
No description
No description
Truncate stream.
No description
No description
No description
Details
bool
dir_closedir()
No description
bool
dir_opendir($path, $options)
No description
string
dir_readdir()
No description
bool
dir_rewinddir()
No description
bool
mkdir($path, $mode, $options)
No description
bool
rename($path_from, $path_to)
No description
bool
rmdir($path, $options)
No description
resource|false
stream_cast(int $cast_as)
Retrieve the underlying stream resource.
This method is called in response to stream_select().
stream_close()
Closes stream.
bool
stream_eof()
No description
bool
stream_flush()
No description
bool
stream_lock($operation)
No description
bool
stream_metadata(string $path, int $option, mixed $value)
Sets metadata on the stream.
bool
stream_open($path, $mode, $options, $opened_path)
No description
string
stream_read($count)
No description
bool
stream_seek(int $offset, int $whence = SEEK_SET)
Seeks to specific location in a stream.
This method is called in response to fseek().
The read/write position of the stream should be updated according to the offset and whence.
bool
stream_set_option(int $option, int $arg1, int $arg2)
Change stream options.
This method is called to set options on the stream.
array
stream_stat()
No description
int
stream_tell()
No description
bool
stream_truncate(int $new_size)
Truncate stream.
Will respond to truncation; e.g., through ftruncate().
int
stream_write($data)
No description
bool
unlink($path)
No description
array
url_stat($path, $flags)
No description