Simplify context switching based on requested format
Located in /Controller/Action/Helper/ContextSwitch.php (line 38)
Zend_Controller_Action_Helper_Abstract | --Zend_Controller_Action_Helper_ContextSwitch
Class | Description |
---|---|
![]() |
Simplify AJAX context switching based on requested format |
JSON auto-serialization flag
Controller property key to utilize for context switching
Request parameter containing requested context
Supported contexts
Current context
Default context (xml)
Whether or not to disable layouts when switching contexts
Methods that require special configuration
Methods that are not configurable via setOptions and setConfig
Original view suffix prior to detecting context switch
Inherited from Zend_Controller_Action_Helper_Abstract
Zend_Controller_Action_Helper_Abstract::$_actionController
Zend_Controller_Action_Helper_Abstract::$_frontController
Add one or more contexts to an action
Add multiple action/context pairs at once
Add new context
Add multiple contexts
Add header to context
Add multiple headers at once for a given context
Clear all contexts for a given controller action or all actions
Clear all callbacks for a given context
Remove all contexts
Clear all headers for a given context
Strategy pattern: return object
Get contexts for a given action or all actions in the controller
Retrieve auto layout disable flag
Get JSON context auto-serialization flag
Get a single callback for a given context and trigger
Get all callbacks for a given context
Retrieve context specification
Return context format request parameter name
Retrieve context definitions
Return current context, if any
Return default context
Retrieve context header
Returns the value of a given header for a given context type
Retrieve context headers
Returns all headers for a context as key/value pairs
Retrieve suffix for given context type
Does a particular controller action have the given context(s)?
Does the given context exist?
Initialize at start of action controller
Reset the view script suffix to the original state, or store the original state.
Initialize context detection and switching
JSON context extra initialization
Turns off viewRenderer auto-rendering
Post dispatch processing
Execute postDispatch callback for current context, if available
JSON post processing
JSON serialize view variables to response body
Remove one or more contexts for a given controller action
Clear a callback for a given context and trigger
Remove a context
Remove a single header from a context
Set a context as available for a given controller action
Overwrite and set multiple action contexts at once
Set flag indicating if layout should be disabled
Should JSON contexts auto-serialize?
Set a callback for a given context and trigger
Set callbacks for a given context
Callbacks should be in trigger/callback pairs.
Overwrite existing context
Set name of parameter to use when determining context format
Set multiple contexts, after first removing all
Indicate default context to use when no context format provided
Customize response header to use when switching context
Passing an empty header value to the setters disables the response header.
Set multiple headers at once for a given context
Configure object from array of options
Customize view script suffix to use when switching context.
Passing an empty suffix value to the setters disables the view script suffix change.
Constructor
Retrieve ViewRenderer
Set callbacks from array of context => callbacks pairs
Set headers from context => headers pairs
Set suffix from array
Validate trigger and return in normalized form
Inherited From Zend_Controller_Action_Helper_Abstract
Zend_Controller_Action_Helper_Abstract::getActionController()
Zend_Controller_Action_Helper_Abstract::getFrontController()
Zend_Controller_Action_Helper_Abstract::getName()
Zend_Controller_Action_Helper_Abstract::getRequest()
Zend_Controller_Action_Helper_Abstract::getResponse()
Zend_Controller_Action_Helper_Abstract::init()
Zend_Controller_Action_Helper_Abstract::postDispatch()
Zend_Controller_Action_Helper_Abstract::preDispatch()
Zend_Controller_Action_Helper_Abstract::setActionController()
Documentation generated on Mon, 21 Jun 2010 15:14:01 -0400 by phpDocumentor 1.4.3