PHP Class Gc\View\Stream

Based in large part on the example at http://www.php.net/manual/en/function.stream-wrapper-register.php
Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Свойство Type Description
$data string Data for streaming.
$mode string Stream mode.
$path string Current stream path.
$position integer Current stream position.
$stat array Stream stats.

Méthodes publiques

Méthode Description
__call ( string $method, array $args ) : void Call method
register ( string $name = 'zend.view', boolean $overwrite = true ) : void Register stream wrapper
streamEof ( ) : boolean Tells if we are at the end of the stream.
streamOpen ( string $path, string $mode ) : boolean Opens the script file and converts markup.
streamRead ( integer $count ) : string Reads from the stream.
streamSeek ( integer $offset, integer $whence ) : boolean Seek to a specific point in the stream.
streamStat ( ) : array Stream statistics.
streamTell ( ) : integer Tells the current position in the stream.
streamWrite ( string $data ) : integer Write in the stream
urlStat ( string $path ) : array Retrieve information about a file Always return empty array because data come from the database

Méthodes protégées

Méthode Description
removeWrapperName ( string $path ) : string Remove stream wrapper name

Method Details

__call() public méthode

Call method
public __call ( string $method, array $args ) : void
$method string Method
$args array Arguments
Résultat void

register() public static méthode

Register stream wrapper
public static register ( string $name = 'zend.view', boolean $overwrite = true ) : void
$name string Name
$overwrite boolean Overwrite wrapper
Résultat void

removeWrapperName() protected méthode

Remove stream wrapper name
protected removeWrapperName ( string $path ) : string
$path string Path
Résultat string

streamEof() public méthode

Tells if we are at the end of the stream.
public streamEof ( ) : boolean
Résultat boolean

streamOpen() public méthode

Opens the script file and converts markup.
public streamOpen ( string $path, string $mode ) : boolean
$path string Path
$mode string Mode
Résultat boolean

streamRead() public méthode

Reads from the stream.
public streamRead ( integer $count ) : string
$count integer Count
Résultat string

streamSeek() public méthode

Seek to a specific point in the stream.
public streamSeek ( integer $offset, integer $whence ) : boolean
$offset integer Offset
$whence integer Whence
Résultat boolean

streamStat() public méthode

Stream statistics.
public streamStat ( ) : array
Résultat array

streamTell() public méthode

Tells the current position in the stream.
public streamTell ( ) : integer
Résultat integer

streamWrite() public méthode

Write in the stream
public streamWrite ( string $data ) : integer
$data string Data
Résultat integer

urlStat() public méthode

Retrieve information about a file Always return empty array because data come from the database
public urlStat ( string $path ) : array
$path string Path
Résultat array

Property Details

$data protected_oe static_oe property

Data for streaming.
protected static string $data
Résultat string

$mode protected_oe property

Stream mode.
protected string $mode
Résultat string

$path protected_oe property

Current stream path.
protected string $path
Résultat string

$position protected_oe static_oe property

Current stream position.
protected static int $position
Résultat integer

$stat protected_oe property

Stream stats.
protected array $stat
Résultat array