PHP Класс Ergo\View\Template

Наследование: extends Ergo\Mixin, implements Ergo\View, implements ArrayAccess
Показать файл Открыть проект

Открытые методы

Метод Описание
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)

Приватные методы

Метод Описание
_renderTemplate ( $template, $vars ) Requires a template in the context of a function, with parameters extracted as php variables

Описание методов

assign() публичный Метод

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

file() публичный Метод

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

includePaths() публичный Метод

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

offsetExists() публичный Метод

См. также: http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html
public offsetExists ( $offset )

offsetGet() публичный Метод

См. также: http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html
public offsetGet ( $offset )

offsetSet() публичный Метод

См. также: http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html
public offsetSet ( $offset, $value )

offsetUnset() публичный Метод

См. также: http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html
public offsetUnset ( $offset )

output() публичный Метод

* (non-phpdoc)
См. также: Ergo\View::output()
public output ( )

partial() публичный Метод

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

stream() публичный Метод

* (non-phpdoc)
См. также: Ergo\View::stream()
public stream ( )