API Documentation

Controller/Plugin/Broker.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Controller
subpackage
Plugins
version
$Id: Broker.php 20255 2010-01-13 13:23:36Z matthew $
Classes
Zend_Controller_Plugin_Broker

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Controller_Plugin_Broker

Extends from
Zend_Controller_Plugin_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Controller
subpackage
Plugins
Properties
$_plugins
Methods
registerPlugin
unregisterPlugin
hasPlugin
getPlugin
getPlugins
setRequest
getRequest
setResponse
getResponse
routeStartup
routeShutdown
dispatchLoopStartup
preDispatch
postDispatch
dispatchLoopShutdown

Description

Properties

$_plugins

array $_plugins = 'array'

Array of instance of objects extending Zend_Controller_Plugin_Abstract

Details

$_plugins
array
visibility
protected
default
array
final
false
static
false

Methods

dispatchLoopShutdown

dispatchLoopShutdown( ) : void

Called before Zend_Controller_Front exits its dispatch loop.

Details
visibility
public
final
false
static
false

dispatchLoopStartup

dispatchLoopStartup( Zend_Controller_Request_Abstract $request ) : void

Called before Zend_Controller_Front enters its dispatch loop.

During the dispatch loop, Zend_Controller_Front keeps a Zend_Controller_Request_Abstract object, and uses Zend_Controller_Dispatcher to dispatch the Zend_Controller_Request_Abstract object to controllers/actions.

Arguments
$request
Zend_Controller_Request_Abstract
Details
visibility
public
final
false
static
false

getPlugin

getPlugin( string $class ) : false|Zend_Controller_Plugin_Abstract|array

Retrieve a plugin or plugins by class

Arguments
$class
string
Class name of plugin(s) desired
Output
false|Zend_Controller_Plugin_Abstract|array
Returns false if none found, plugin if only one found, and array of plugins if multiple plugins of same class found
Details
visibility
public
final
false
static
false

getPlugins

getPlugins( ) : array

Retrieve all plugins

Output
array
Details
visibility
public
final
false
static
false

getRequest

getRequest( ) : Zend_Controller_Request_Abstract

Get request object

Details
visibility
public
final
false
static
false

getResponse

getResponse( ) : Zend_Controller_Response_Abstract

Get response object

Details
visibility
public
final
false
static
false

hasPlugin

hasPlugin( string $class ) : bool

Is a plugin of a particular class registered?

Arguments
$class
string
Output
bool
Details
visibility
public
final
false
static
false

postDispatch

postDispatch( Zend_Controller_Request_Abstract $request ) : void

Called after an action is dispatched by Zend_Controller_Dispatcher.

Arguments
$request
Zend_Controller_Request_Abstract
Details
visibility
public
final
false
static
false

preDispatch

preDispatch( Zend_Controller_Request_Abstract $request ) : void

Called before an action is dispatched by Zend_Controller_Dispatcher.

Arguments
$request
Zend_Controller_Request_Abstract
Details
visibility
public
final
false
static
false

registerPlugin

registerPlugin( Zend_Controller_Plugin_Abstract $plugin, int $stackIndex = null ) : Zend_Controller_Plugin_Broker

Register a plugin.

Arguments
$plugin
Zend_Controller_Plugin_Abstract
$stackIndex
int
Details
visibility
public
final
false
static
false

routeShutdown

routeShutdown( Zend_Controller_Request_Abstract $request ) : void

Called before Zend_Controller_Front exits its iterations over the route set.

Arguments
$request
Zend_Controller_Request_Abstract
Details
visibility
public
final
false
static
false

routeStartup

routeStartup( Zend_Controller_Request_Abstract $request ) : void

Called before Zend_Controller_Front begins evaluating the request against its routes.

Arguments
$request
Zend_Controller_Request_Abstract
Details
visibility
public
final
false
static
false

setRequest

setRequest( Zend_Controller_Request_Abstract $request ) : Zend_Controller_Plugin_Broker

Set request object, and register with each plugin

Arguments
$request
Zend_Controller_Request_Abstract
Details
visibility
public
final
false
static
false

setResponse

setResponse( Zend_Controller_Response_Abstract $response ) : Zend_Controller_Plugin_Broker

Set response object

Arguments
$response
Zend_Controller_Response_Abstract
Details
visibility
public
final
false
static
false

unregisterPlugin

unregisterPlugin( string|Zend_Controller_Plugin_Abstract $plugin ) : Zend_Controller_Plugin_Broker

Unregister a plugin.

Arguments
$plugin
stringZend_Controller_Plugin_Abstract
Plugin object or class name
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.