PHP Class Ergo\View\Template

Inheritance: extends Ergo\Mixin, implements Ergo\View, implements ArrayAccess
Afficher le fichier Open project: 99designs/ergo

Méthodes publiques

Méthode Description
assign ( $vars, $overwrite = true ) Assigns variables to the template
file ( $filename ) Defines the template file to be used
includePaths ( $paths ) Adds one or more paths to the include dirs
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
output ( ) * (non-phpdoc)
partial ( $template, $vars = [] ) Renders a template in the context of the current template
stream ( ) * (non-phpdoc)

Private Methods

Méthode Description
_renderTemplate ( $template, $vars ) Requires a template in the context of a function, with parameters extracted as php variables

Method Details

assign() public méthode

Assigns variables to the template
public assign ( $vars, $overwrite = true )

file() public méthode

Defines the template file to be used
public file ( $filename )

includePaths() public méthode

Adds one or more paths to the include dirs
public includePaths ( $paths )

offsetExists() public méthode

See also: http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html
public offsetExists ( $offset )

offsetGet() public méthode

See also: http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html
public offsetGet ( $offset )

offsetSet() public méthode

See also: http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html
public offsetSet ( $offset, $value )

offsetUnset() public méthode

See also: http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html
public offsetUnset ( $offset )

output() public méthode

* (non-phpdoc)
See also: Ergo\View::output()
public output ( )

partial() public méthode

Renders a template in the context of the current template
public partial ( $template, $vars = [] )

stream() public méthode

* (non-phpdoc)
See also: Ergo\View::stream()
public stream ( )