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
파일 보기 프로젝트 열기: zendframework/zend-mvc

보호된 프로퍼티들

프로퍼티 타입 설명
$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