API Documentation

Zend/View/Stream.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_View  
Version
$Id: Stream.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_View_Stream

Package: Zend\View

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)

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedstring  $_data= ''

Data for streaming.

Details
Type
string
Propertyprotectedint  $_pos= '0'

Current stream position.

Default value0Details
Type
int
Propertyprotectedarray  $_stat= ''

Stream stats.

Details
Type
array

Methods

methodpublicstream_eof( ) : void

Tells if we are at the end of the stream.

methodpublicstream_open(  $path,  $mode,  $options,  $opened_path ) : void

Opens the script file and converts markup.

Parameters
Name Type Description
$path
$mode
$options
$opened_path
methodpublicstream_read(  $count ) : void

Reads from the stream.

Parameters
Name Type Description
$count
methodpublicstream_seek(  $offset,  $whence ) : void

Seek to a specific point in the stream.

Parameters
Name Type Description
$offset
$whence
methodpublicstream_stat( ) : void

Stream statistics.

methodpublicstream_tell( ) : void

Tells the current position in the stream.

methodpublicurl_stat( ) : array

Included so that __FILE__ returns the appropriate info

Returns
Type Description
array
Documentation was generated by DocBlox 0.15.1.