\rex_stream

Stream wrapper to include variables like files (php code will be evaluated).

Example:

');

?>

Summary

Methods
Properties
Constants
factory()
stream_open()
stream_read()
stream_eof()
stream_seek()
stream_set_option()
stream_tell()
stream_flush()
stream_stat()
url_stat()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

factory()

factory(string  $path, string  $content) : string

Prepares a new stream.

Parameters

string $path

Virtual path which should describe the content (e.g. "template/1"), only relevant for error messages

string $content

Content which will be included

Throws

\InvalidArgumentException

Returns

string —

Full path with protocol (e.g. "rex:///template/1")

stream_open()

stream_open(string  $path, string  $mode, int  $options, ?string  $openedPath) : bool

Parameters

string $path
string $mode
int $options
?string $openedPath

Returns

bool —

stream_read()

stream_read(int  $count) : string

Parameters

int $count

Returns

string —

stream_eof()

stream_eof() : bool

Returns

bool —

stream_seek()

stream_seek(int  $offset, int  $whence = SEEK_SET) : bool

Parameters

int $offset
int $whence

Returns

bool —

stream_set_option()

stream_set_option() : bool

Returns

bool —

stream_tell()

stream_tell() : int

Returns

int —

stream_flush()

stream_flush() : bool

Returns

bool —

stream_stat()

stream_stat() : mixed

Returns

mixed —

url_stat()

url_stat() : mixed

Returns

mixed —