rex_stream
in package
Stream wrapper to include variables like files (php code will be evaluated).
Example:
?>
Tags
Table of Contents
Properties
- $context : resource|null
Methods
- factory() : string
- Prepares a new stream.
- stream_eof() : bool
- stream_flush() : bool
- stream_open() : bool
- stream_read() : string
- stream_seek() : bool
- stream_set_option() : bool
- stream_stat() : null
- stream_tell() : int
- url_stat() : null
Properties
$context
public
resource|null
$context
Tags
Methods
factory()
Prepares a new stream.
public
static factory(string $path, string $content) : string
Parameters
- $path : string
-
Virtual path which should describe the content (e.g. "template/1"), only relevant for error messages
- $content : string
-
Content which will be included
Tags
Return values
string —Full path with protocol (e.g. "rex:///template/1")
stream_eof()
public
stream_eof() : bool
Tags
Return values
boolstream_flush()
public
stream_flush() : bool
Tags
Return values
boolstream_open()
public
stream_open(string $path, string $mode, int $options, string|null &$openedPath) : bool
Parameters
- $path : string
- $mode : string
- $options : int
- $openedPath : string|null
Tags
Return values
boolstream_read()
public
stream_read(int $count) : string
Parameters
- $count : int
Tags
Return values
stringstream_seek()
public
stream_seek(int $offset[, int $whence = SEEK_SET ]) : bool
Parameters
- $offset : int
- $whence : int = SEEK_SET
Tags
Return values
boolstream_set_option()
public
stream_set_option() : bool
Tags
Return values
boolstream_stat()
public
stream_stat() : null
Tags
Return values
nullstream_tell()
public
stream_tell() : int
Tags
Return values
inturl_stat()
public
url_stat() : null