API Documentation

View/Stream.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
version
$Id: Stream.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_View_Stream

Description

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.

Zend_View_Stream

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
Properties
$_pos
$_data
$_stat
Methods
stream_open
url_stat
stream_read
stream_tell
stream_eof
stream_stat
stream_seek

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)

Properties

$_data

string $_data = ''

Data for streaming.

Details

$_data
string
visibility
protected
default
final
false
static
false

$_pos

int $_pos = '0'

Current stream position.

Details

$_pos
int
visibility
protected
default
0
final
false
static
false

$_stat

array $_stat = ''

Stream stats.

Details

$_stat
array
visibility
protected
default
final
false
static
false

Methods

stream_eof

stream_eof( ) :

Tells if we are at the end of the stream.

Details
visibility
public
final
false
static
false

stream_open

stream_open(  $path,  $mode,  $options,  $opened_path ) :

Opens the script file and converts markup.

Arguments
$path
$mode
$options
$opened_path
Details
visibility
public
final
false
static
false

stream_read

stream_read(  $count ) :

Reads from the stream.

Arguments
$count
Details
visibility
public
final
false
static
false

stream_seek

stream_seek(  $offset,  $whence ) :

Seek to a specific point in the stream.

Arguments
$offset
$whence
Details
visibility
public
final
false
static
false

stream_stat

stream_stat( ) :

Stream statistics.

Details
visibility
public
final
false
static
false

stream_tell

stream_tell( ) :

Tells the current position in the stream.

Details
visibility
public
final
false
static
false

url_stat

url_stat( ) : array

Included so that __FILE__ returns the appropriate info

Output
array
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.