PHP 클래스 Zend\Mvc\Controller\AbstractController

상속: implements Zend\Stdlib\DispatchableInterface, implements Zend\EventManager\EventManagerAwareInterface, implements Zend\Mvc\InjectApplicationEventInterface, implements Zend\ServiceManager\ServiceLocatorAwareInterface
파일 보기 프로젝트 열기: zendframework/zend-mvc 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$event Zend\EventManager\EventInterface
$eventIdentifier null | string | string[]
$events Zend\EventManager\EventManagerInterface
$plugins PluginManager
$request Zend\Stdlib\RequestInterface
$response Zend\Stdlib\ResponseInterface

공개 메소드들

메소드 설명
__call ( string $method, array $params ) : mixed Method overloading: return/call plugins
dispatch ( Zend\Stdlib\RequestInterface $request, Zend\Stdlib\ResponseInterface $response = null ) : Zend\Stdlib\ResponseInterface | mixed Dispatch a request
getEvent ( ) : MvcEvent Get the attached event
getEventManager ( ) : Zend\EventManager\EventManagerInterface Retrieve the event manager
getMethodFromAction ( string $action ) : string Transform an "action" token into a method name
getPluginManager ( ) : PluginManager Get plugin manager
getRequest ( ) : Zend\Stdlib\RequestInterface Get request object
getResponse ( ) : Zend\Stdlib\ResponseInterface Get response object
onDispatch ( MvcEvent $e ) : mixed Execute the request
plugin ( string $name, array $options = null ) : mixed Get plugin instance
setEvent ( Zend\EventManager\EventInterface $e ) : void Set an event to use during dispatch
setEventManager ( Zend\EventManager\EventManagerInterface $events ) : AbstractController Set the event manager instance used by this context
setPluginManager ( PluginManager $plugins ) : AbstractController Set plugin manager

보호된 메소드들

메소드 설명
attachDefaultListeners ( ) : void Register the default events for this controller

메소드 상세

__call() 공개 메소드

If the plugin is a functor, call it, passing the parameters provided. Otherwise, return the plugin instance.
public __call ( string $method, array $params ) : mixed
$method string
$params array
리턴 mixed

attachDefaultListeners() 보호된 메소드

Register the default events for this controller
protected attachDefaultListeners ( ) : void
리턴 void

dispatch() 공개 메소드

Dispatch a request
public dispatch ( Zend\Stdlib\RequestInterface $request, Zend\Stdlib\ResponseInterface $response = null ) : Zend\Stdlib\ResponseInterface | mixed
$request Zend\Stdlib\RequestInterface
$response Zend\Stdlib\ResponseInterface
리턴 Zend\Stdlib\ResponseInterface | mixed

getEvent() 공개 메소드

Will create a new MvcEvent if none provided.
public getEvent ( ) : MvcEvent
리턴 Zend\Mvc\MvcEvent

getEventManager() 공개 메소드

Lazy-loads an EventManager instance if none registered.
public getEventManager ( ) : Zend\EventManager\EventManagerInterface
리턴 Zend\EventManager\EventManagerInterface

getMethodFromAction() 공개 정적인 메소드

Transform an "action" token into a method name
public static getMethodFromAction ( string $action ) : string
$action string
리턴 string

getPluginManager() 공개 메소드

Get plugin manager
public getPluginManager ( ) : PluginManager
리턴 PluginManager

getRequest() 공개 메소드

Get request object
public getRequest ( ) : Zend\Stdlib\RequestInterface
리턴 Zend\Stdlib\RequestInterface

getResponse() 공개 메소드

Get response object
public getResponse ( ) : Zend\Stdlib\ResponseInterface
리턴 Zend\Stdlib\ResponseInterface

onDispatch() 추상적인 공개 메소드

Execute the request
abstract public onDispatch ( MvcEvent $e ) : mixed
$e Zend\Mvc\MvcEvent
리턴 mixed

plugin() 공개 메소드

Get plugin instance
public plugin ( string $name, array $options = null ) : mixed
$name string Name of plugin to return
$options array Options to pass to plugin constructor (if not already instantiated)
리턴 mixed

setEvent() 공개 메소드

By default, will re-cast to MvcEvent if another event type is provided.
public setEvent ( Zend\EventManager\EventInterface $e ) : void
$e Zend\EventManager\EventInterface
리턴 void

setEventManager() 공개 메소드

Set the event manager instance used by this context
public setEventManager ( Zend\EventManager\EventManagerInterface $events ) : AbstractController
$events Zend\EventManager\EventManagerInterface
리턴 AbstractController

setPluginManager() 공개 메소드

Set plugin manager
public setPluginManager ( PluginManager $plugins ) : AbstractController
$plugins PluginManager
리턴 AbstractController

프로퍼티 상세

$event 보호되어 있는 프로퍼티

protected EventInterface,Zend\EventManager $event
리턴 Zend\EventManager\EventInterface

$eventIdentifier 보호되어 있는 프로퍼티

protected null|string|string[] $eventIdentifier
리턴 null | string | string[]

$events 보호되어 있는 프로퍼티

protected EventManagerInterface,Zend\EventManager $events
리턴 Zend\EventManager\EventManagerInterface

$plugins 보호되어 있는 프로퍼티

protected PluginManager,Zend\Mvc\Controller $plugins
리턴 PluginManager

$request 보호되어 있는 프로퍼티

protected RequestInterface,Zend\Stdlib $request
리턴 Zend\Stdlib\RequestInterface

$response 보호되어 있는 프로퍼티

protected ResponseInterface,Zend\Stdlib $response
리턴 Zend\Stdlib\ResponseInterface