PHP Класс Zend\Mvc\View\Http\InjectViewModelListener

Наследование: extends Zend\EventManager\AbstractListenerAggregate
Показать файл Открыть проект

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

Метод Описание
attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) {@inheritDoc}
injectViewModel ( MvcEvent $e ) : void Insert the view model into the event

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

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

{@inheritDoc}
public attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 )
$events Zend\EventManager\EventManagerInterface

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

Inspects the MVC result; if it's a view model, it then either (a) adds it as a child to the default, composed view model, or (b) replaces it if the result is marked as terminable.
public injectViewModel ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent
Результат void