PHP Class Ergo\View\Template

Inheritance: extends Ergo\Mixin, implements Ergo\View, implements ArrayAccess
Show file Open project: 99designs/ergo

Public Methods

Method 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

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

Method Details

assign() public method

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

file() public method

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

includePaths() public method

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

offsetExists() public method

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

offsetGet() public method

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

offsetSet() public method

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

offsetUnset() public method

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

output() public method

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

partial() public method

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

stream() public method

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