Zend\View\Stream
Stream wrapper to convert markup of mostly-PHP templates into PHP prior to include().
Based in large part on the example at
http://www.php.net/manual/en/function.stream-wrapper-register.php
As well as the example provided at:
http://mikenaberezny.com/2006/02/19/symphony-templates-ruby-erb/
written by
Mike Naberezny (@link http://mikenaberezny.com)
Paul M. Jones (@link http://paul-m-jones.com)
Synopsis
class Stream
{
- // methods
- public bool stream_open()
- public array url_stat()
- public string stream_read()
- public int stream_tell()
- public bool stream_eof()
- public array stream_stat()
- public bool stream_seek()
Members
protected
- $data
—
string
Data for streaming. - $pos
—
int
Current stream position. - $stat
—
array
Stream stats.
Methods
public
- stream_eof() — Tells if we are at the end of the stream.
- stream_open() — Opens the script file and converts markup.
- stream_read() — Reads from the stream.
- stream_seek() — Seek to a specific point in the stream.
- stream_stat() — Stream statistics.
- stream_tell() — Tells the current position in the stream.
- url_stat() — Included so that __FILE__ returns the appropriate info