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

Instantiates and configures all classes related to the view layer, including the renderer (and its associated resolver(s) and helper manager), the view object (and its associated rendering strategies), and the various MVC strategies and listeners. Defines and manages the following services: - ViewHelperManager (also aliased to Zend\View\HelperPluginManager and ViewHelperBroker) - ViewTemplateMapResolver (also aliased to Zend\View\Resolver\TemplateMapResolver) - ViewTemplatePathStack (also aliased to Zend\View\Resolver\TemplatePathStack) - ViewResolver (also aliased to Zend\View\Resolver\AggregateResolver and ResolverInterface) - ViewRenderer (also aliased to Zend\View\Renderer\PhpRenderer and RendererInterface) - ViewPhpRendererStrategy (also aliased to Zend\View\Strategy\PhpRendererStrategy) - View (also aliased to Zend\View\View) - DefaultRenderingStrategy (also aliased to Zend\Mvc\View\Http\DefaultRenderingStrategy) - ExceptionStrategy (also aliased to Zend\Mvc\View\Http\ExceptionStrategy) - RouteNotFoundStrategy (also aliased to Zend\Mvc\View\Http\RouteNotFoundStrategy and 404Strategy) - ViewModel
Наследование: implements Zend\EventManager\ListenerAggregateInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$config application configuration service
$event Zend\Mvc\MvcEvent
$helperManager
$mvcRenderingStrategy
$renderer
$rendererStrategy
$resolver
$services Zend\ServiceManager\ServiceManager
$view
$viewModel

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

Метод Описание
attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) {@inheritDoc}
getView ( ) : Zend\View\View Retrieves the View instance
getViewModel ( ) : Zend\View\Model\ModelInterface Configures the MvcEvent view model to ensure it has the template injected
onBootstrap ( $event ) : void Prepares the view layer

Защищенные методы

Метод Описание
registerMvcRenderingStrategies ( Zend\EventManager\EventManagerInterface $events ) : void Register additional mvc rendering strategies
registerViewStrategies ( ) : void Register additional view strategies

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

Метод Описание
injectViewModelIntoPlugin ( ) Injects the ViewModel view helper with the root view model.

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

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

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

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

Retrieves the View instance
public getView ( ) : Zend\View\View
Результат Zend\View\View

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

Configures the MvcEvent view model to ensure it has the template injected
public getViewModel ( ) : Zend\View\Model\ModelInterface
Результат Zend\View\Model\ModelInterface

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

Prepares the view layer
public onBootstrap ( $event ) : void
$event
Результат void

registerMvcRenderingStrategies() защищенный Метод

If there is a "mvc_strategies" key of the view manager configuration, loop through it. Pull each as a service from the service manager, and, if it is a ListenerAggregate, attach it to the view, at priority 100. This latter allows each to trigger before the default mvc rendering strategy, and for them to trigger in the order they are registered.
protected registerMvcRenderingStrategies ( Zend\EventManager\EventManagerInterface $events ) : void
$events Zend\EventManager\EventManagerInterface
Результат void

registerViewStrategies() защищенный Метод

If there is a "strategies" key of the view manager configuration, loop through it. Pull each as a service from the service manager, and, if it is a ListenerAggregate, attach it to the view, at priority 100. This latter allows each to trigger before the default strategy, and for them to trigger in the order they are registered.
protected registerViewStrategies ( ) : void
Результат void

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

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

application configuration service
protected $config

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

protected MvcEvent,Zend\Mvc $event
Результат Zend\Mvc\MvcEvent

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

protected $helperManager

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

protected $mvcRenderingStrategy

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

protected $renderer

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

protected $rendererStrategy

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

protected $resolver

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

protected ServiceManager,Zend\ServiceManager $services
Результат Zend\ServiceManager\ServiceManager

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

protected $view

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

protected $viewModel