Documentation

rex_stream
in package

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

Example:

');

?>

Tags
author

gharlan

see
https://www.php.net/manual/en/class.streamwrapper.php

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

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
throws
InvalidArgumentException
psalm-taint-specialize
Return values
string

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


        
On this page

Search results