PHP 클래스 FOF30\Dispatcher\Dispatcher

파일 보기 프로젝트 열기: akeeba/fof 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$defaultView The name of the default view, in case none is specified

보호된 프로퍼티들

프로퍼티 타입 설명
$config Local cache of the dispatcher configuration
$container The container we belong to
$controller The controller which will be used
$isTransparentlyLoggedIn Is this user transparently logged in?
$layout The layout for rendering the view
$view The view which will be rendered by the dispatcher

공개 메소드들

메소드 설명
__construct ( Container $container, array $config = [] ) Public constructor
__get ( string $name ) : mixed | null Magic get method. Handles magic properties: $this->input mapped to $this->container->input
dispatch ( ) : void The main code of the Dispatcher. It spawns the necessary controller and runs it.
getController ( ) : Controller Returns a reference to the Controller object currently in use by the dispatcher

보호된 메소드들

메소드 설명
transparentAuthenticationLogin ( ) Handles the transparent authentication log in
transparentAuthenticationLogout ( ) Handles the transparent authentication log out
triggerEvent ( string $event, array $arguments = [] ) : boolean Triggers an object-specific event. The event runs both locally –if a suitable method exists– and through the Joomla! plugin system. A true/false return value is expected. The first false return cancels the event.

메소드 상세

__construct() 공개 메소드

The $config array can contain the following optional values: defaultView string The view to render if none is specified in $input Do note that $config is passed to the Controller and through it to the Model and View. Please see these classes for more information on the configuration variables they accept.
public __construct ( Container $container, array $config = [] )
$container FOF30\Container\Container
$config array

__get() 공개 메소드

Magic get method. Handles magic properties: $this->input mapped to $this->container->input
public __get ( string $name ) : mixed | null
$name string The property to fetch
리턴 mixed | null

dispatch() 공개 메소드

The main code of the Dispatcher. It spawns the necessary controller and runs it.
public dispatch ( ) : void
리턴 void

getController() 공개 메소드

Returns a reference to the Controller object currently in use by the dispatcher
public getController ( ) : Controller
리턴 FOF30\Controller\Controller

transparentAuthenticationLogin() 보호된 메소드

Handles the transparent authentication log in

transparentAuthenticationLogout() 보호된 메소드

Handles the transparent authentication log out

triggerEvent() 보호된 메소드

EXAMPLE Component: com_foobar, Object name: item, Event: onBeforeDispatch, Arguments: array(123, 456) The event calls: 1. $this->onBeforeDispatch(123, 456) 2. Joomla! plugin event onComFoobarDispatcherBeforeDispatch($this, 123, 456)
protected triggerEvent ( string $event, array $arguments = [] ) : boolean
$event string The name of the event, typically named onPredicateVerb e.g. onBeforeKick
$arguments array The arguments to pass to the event handlers
리턴 boolean

프로퍼티 상세

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

Local cache of the dispatcher configuration
protected $config

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

The container we belong to
protected $container

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

The controller which will be used
protected $controller

$defaultView 공개적으로 프로퍼티

The name of the default view, in case none is specified
public $defaultView

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

Is this user transparently logged in?
protected $isTransparentlyLoggedIn

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

The layout for rendering the view
protected $layout

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

The view which will be rendered by the dispatcher
protected $view