Controller/Plugin/ActionStack.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Controller  
Subpackage
Plugins  

\Zend_Controller_Plugin_ActionStack

Package: Zend\Controller\Plugins
Manage a stack of actions
Parent(s)
\Zend_Controller_Plugin_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
\global\Zend_Controller_Plugin_Abstract  
Version
$Id: ActionStack.php 24593 2012-01-05 20:35:02Z matthew $  

Properties

>VPropertyprotectedBool $_clearRequestParams = false
Flag to determine whether request parameters are cleared between actions, or whether new parameters are added to existing request parameters.
Default valuefalseDetails
Type
Bool
>VPropertyprotected\Zend_Registry $_registry
Details
Type
\Zend_Registry
>VPropertyprotectedstring $_registryKey = 'Zend_Controller_Plugin_ActionStack'
Registry key under which actions are stored
Default value'Zend_Controller_Plugin_ActionStack'Details
Type
string
>VPropertyprotected\Zend_Controller_Request_Abstract $_request
>VPropertyprotected\Zend_Controller_Response_Abstract $_response
>VPropertyprotectedarray $_validKeys = array('module', 'controller', 'action', 'params')
Valid keys for stack items
Default valuearray('module', 'controller', 'action', 'params')Details
Type
array

Methods

methodpublic__construct(\Zend_Registry $registry = null, string $key = null) : void

Constructor

Parameters
NameTypeDescription
$registry\Zend_Registry
$keystring
methodprotected_saveStack(array $stack) : \Zend_Controller_Plugin_ActionStack

Save stack to registry

Parameters
NameTypeDescription
$stackarray
Returns
TypeDescription
\Zend_Controller_Plugin_ActionStack
methodpublicdispatchLoopShutdown() : void
inherited

Called before Zend_Controller_Front exits its dispatch loop.

Inherited from: \Zend_Controller_Plugin_Abstract::dispatchLoopShutdown()
methodpublicdispatchLoopStartup(\Zend_Controller_Request_Abstract $request) : void
inherited

Called before Zend_Controller_Front enters its dispatch loop.

Inherited from: \Zend_Controller_Plugin_Abstract::dispatchLoopStartup()
Parameters
NameTypeDescription
$request\Zend_Controller_Request_Abstract
methodpublicforward(array $next) : void

Forward request with next action

Parameters
NameTypeDescription
$nextarray
methodpublicgetClearRequestParams() : bool

Retrieve clearRequestParams flag

Returns
TypeDescription
bool
methodpublicgetRegistry() : \Zend_Registry

Retrieve registry object

Returns
TypeDescription
\Zend_Registry
methodpublicgetRegistryKey() : string

Retrieve registry key

Returns
TypeDescription
string
methodpublicgetRequest() : \Zend_Controller_Request_Abstract
inherited

Get request object

Inherited from: \Zend_Controller_Plugin_Abstract::getRequest()
Returns
TypeDescription
\Zend_Controller_Request_Abstract$request
methodpublicgetResponse() : \Zend_Controller_Response_Abstract
inherited

Get response object

Inherited from: \Zend_Controller_Plugin_Abstract::getResponse()
Returns
TypeDescription
\Zend_Controller_Response_Abstract$response
methodpublicgetStack() : array

Retrieve action stack

Returns
TypeDescription
array
methodpublicpopStack() : false | \Zend_Controller_Request_Abstract

Pop an item off the action stack

Returns
TypeDescription
false | \Zend_Controller_Request_Abstract
methodpublicpostDispatch(\Zend_Controller_Request_Abstract $request) : void

postDispatch() plugin hook -- check for actions in stack, and dispatch if any found

This callback allows for proxy or filter behavior. By altering the request and resetting its dispatched flag (via setDispatched(false)), a new action may be specified for dispatching.

Parameters
NameTypeDescription
$request\Zend_Controller_Request_Abstract
methodpublicpreDispatch(\Zend_Controller_Request_Abstract $request) : void
inherited

Called before an action is dispatched by Zend_Controller_Dispatcher.

Inherited from: \Zend_Controller_Plugin_Abstract::preDispatch()

This callback allows for proxy or filter behavior. By altering the request and resetting its dispatched flag (via setDispatched(false)), the current action may be skipped.

Parameters
NameTypeDescription
$request\Zend_Controller_Request_Abstract
methodpublicpushStack(\Zend_Controller_Request_Abstract $next) : \Zend_Controller_Plugin_ActionStack

Push an item onto the stack

Parameters
NameTypeDescription
$next\Zend_Controller_Request_Abstract
Returns
TypeDescription
\Zend_Controller_Plugin_ActionStack
methodpublicrouteShutdown(\Zend_Controller_Request_Abstract $request) : void
inherited

Called after Zend_Controller_Router exits.

Inherited from: \Zend_Controller_Plugin_Abstract::routeShutdown()

Called after Zend_Controller_Front exits from the router.

Parameters
NameTypeDescription
$request\Zend_Controller_Request_Abstract
methodpublicrouteStartup(\Zend_Controller_Request_Abstract $request) : void
inherited

Called before Zend_Controller_Front begins evaluating the request against its routes.

Inherited from: \Zend_Controller_Plugin_Abstract::routeStartup()
Parameters
NameTypeDescription
$request\Zend_Controller_Request_Abstract
methodpublicsetClearRequestParams( $clearRequestParams) : \Zend_Controller_Plugin_ActionStack

Set clearRequestParams flag

@param bool $clearRequestParams

Parameters
NameTypeDescription
$clearRequestParams
Returns
TypeDescription
\Zend_Controller_Plugin_ActionStack
methodpublicsetRegistry(\Zend_Registry $registry) : \Zend_Controller_Plugin_ActionStack

Set registry object

Parameters
NameTypeDescription
$registry\Zend_Registry
Returns
TypeDescription
\Zend_Controller_Plugin_ActionStack
methodpublicsetRegistryKey(string $key) : \Zend_Controller_Plugin_ActionStack

Set registry key

Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
\Zend_Controller_Plugin_ActionStack
methodpublicsetRequest(\Zend_Controller_Request_Abstract $request) : \Zend_Controller_Plugin_Abstract
inherited

Set request object

Inherited from: \Zend_Controller_Plugin_Abstract::setRequest()
Parameters
NameTypeDescription
$request\Zend_Controller_Request_Abstract
Returns
TypeDescription
\Zend_Controller_Plugin_Abstract
methodpublicsetResponse(\Zend_Controller_Response_Abstract $response) : \Zend_Controller_Plugin_Abstract
inherited

Set response object

Inherited from: \Zend_Controller_Plugin_Abstract::setResponse()
Parameters
NameTypeDescription
$response\Zend_Controller_Response_Abstract
Returns
TypeDescription
\Zend_Controller_Plugin_Abstract
Documentation was generated by phpDocumentor 2.0.0a12.