Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_View_Stream Class Reference

Public Member Functions

 stream_open ($path, $mode, $options, &$opened_path)
 Opens the script file and converts markup.
 
 url_stat ()
 Included so that __FILE__ returns the appropriate info.
 
 stream_read ($count)
 Reads from the stream.
 
 stream_tell ()
 Tells the current position in the stream.
 
 stream_eof ()
 Tells if we are at the end of the stream.
 
 stream_stat ()
 Stream statistics.
 
 stream_seek ($offset, $whence)
 Seek to a specific point in the stream.
 

Protected Attributes

 $_pos = 0
 
 $_data
 
 $_stat
 

Member Function Documentation

stream_eof ( )

Tells if we are at the end of the stream.

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

Opens the script file and converts markup.

If reading the file failed, update our local stat store to reflect the real stat of the file, then return on failure

Convert <?= ?> to long-form <?php echo ?> and <? ?> to <?php ?>

file_get_contents() won't update PHP's stat cache, so we grab a stat of the file to prevent additional reads should the script be requested again, which will make include() happy.

stream_read (   $count)

Reads from the stream.

stream_seek (   $offset,
  $whence 
)

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.

Returns
array

Member Data Documentation

$_data
protected
$_pos = 0
protected
$_stat
protected