PHP Class Zend\Mvc\View\Http\CreateViewModelListener

Inheritance: extends Zend\EventManager\AbstractListenerAggregate
Show file Open project: zendframework/zend-mvc

Public Methods

Method Description
attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) {@inheritDoc}
createViewModelFromArray ( MvcEvent $e ) : void Inspect the result, and cast it to a ViewModel if an assoc array is detected
createViewModelFromNull ( MvcEvent $e ) : void Inspect the result, and cast it to a ViewModel if null is detected

Method Details

attach() public method

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

createViewModelFromArray() public method

Inspect the result, and cast it to a ViewModel if an assoc array is detected
public createViewModelFromArray ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent
return void

createViewModelFromNull() public method

Inspect the result, and cast it to a ViewModel if null is detected
public createViewModelFromNull ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent
return void