PHP Класс library\App\View

Extends \Zend\View\Renderer\RendererInterface for interoperability with Zend_View.
Автор: Bogdan Ghervan ([email protected])
Наследование: extends Slim\View, implements Zend\View\Renderer\RendererInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_helperCache array Local view helper cache.
$_helperManager Zend\View\HelperPluginManager View helper manager.

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

Метод Описание
__call ( string $method, array $args ) : mixed Provides access to view helpers.
__construct ( ) : void Class constructor.
getEngine ( ) : Layout Returns the template engine object.
partial ( string $template, array $data = [] ) : string Renders template fragment in its own variable scope.
render ( string $template, array $data = null ) : string Renders template and injects it to the layout file.
setResolver ( Zend\View\Resolver\ResolverInterface $resolver ) : Layout Set the resolver used to map a template name to a resource the renderer may consume.
url ( string $path = null ) : string Generates a fully qualified URL to the given path.

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

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

Provides access to view helpers.
public __call ( string $method, array $args ) : mixed
$method string
$args array
Результат mixed

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

Initializes helper manager.
public __construct ( ) : void
Результат void

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

Returns the template engine object.
public getEngine ( ) : Layout
Результат Layout

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

Renders template fragment in its own variable scope.
public partial ( string $template, array $data = [] ) : string
$template string
$data array
Результат string

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

Renders template and injects it to the layout file.
public render ( string $template, array $data = null ) : string
$template string
$data array
Результат string

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

Set the resolver used to map a template name to a resource the renderer may consume.
public setResolver ( Zend\View\Resolver\ResolverInterface $resolver ) : Layout
$resolver Zend\View\Resolver\ResolverInterface
Результат Layout

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

Generates a fully qualified URL to the given path.
public url ( string $path = null ) : string
$path string
Результат string

Описание свойств

$_helperCache защищенное свойство

Local view helper cache.
protected array $_helperCache
Результат array

$_helperManager защищенное свойство

View helper manager.
protected HelperPluginManager,Zend\View $_helperManager
Результат Zend\View\HelperPluginManager