Class Stream

Summary

Fully Qualified Name: Laminas\View\Stream

Description

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)

Methods

Name Description Defined By
stream_eof() Tells if we are at the end of the stream. Stream
stream_open() Opens the script file and converts markup. Stream
stream_read() Reads from the stream. Stream
stream_seek() Seek to a specific point in the stream. Stream
stream_stat() Stream statistics. Stream
stream_tell() Tells the current position in the stream. Stream
url_stat() Included so that __FILE__ returns the appropriate info Stream

Method Details

stream_eof()

Tells if we are at the end of the stream.

Returns: bool

stream_open()

Opens the script file and converts markup.

Parameter Name Type Description
$path string
$opened_path
$mode
$options
$opened_path

Returns: bool

stream_read()

Reads from the stream.

Parameter Name Type Description
$count int

Returns: string

stream_seek()

Seek to a specific point in the stream.

Parameter Name Type Description
$whence
$offset
$whence

Returns: bool

stream_stat()

Stream statistics.

Returns: array

stream_tell()

Tells the current position in the stream.

Returns: int

url_stat()

Included so that __FILE__ returns the appropriate info

Returns: array

Top