Zend_Controller_Action_Helper_ContextSwitchSimplify 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 |
|---|---|
Zend_Controller_Action_Helper_AjaxContext
|
Simplify AJAX context switching based on requested format |
Zend_Controller_Action_Helper_ContextSwitch|void
addActionContext
(string $action, string|array $context)
Zend_Controller_Action_Helper_ContextSwitch
addHeader
(string $context, string $header, string $content)
Zend_Controller_Action_Helper_ContextSwitch|void
setActionContext
(string $action, string|array $context)
Zend_Controller_Action_Helper_ContextSwitch
setCallback
(string $context, string $trigger, string|array $callback)
Zend_Controller_Action_Helper_ContextSwitch
setHeader
( $context, string $header, string $content, string $type)
Zend_Controller_Action_Helper_ContextSwitch
setSuffix
(string $context, string $suffix, [boolean $prependViewRendererSuffix = true])
boolean
$_autoJsonSerialization
= true (line 56)
JSON auto-serialization flag
string
$_contextKey
= 'contexts' (line 62)
Controller property key to utilize for context switching
string
$_contextParam
= 'format' (line 68)
Request parameter containing requested context
array
$_contexts
= array() (line 50)
Supported contexts
string
$_currentContext
(line 74)
Current context
string
$_defaultContext
= 'xml' (line 80)
Default context (xml)
boolean
$_disableLayout
= true (line 86)
Whether or not to disable layouts when switching contexts
array
$_specialConfig
= array(Methods that require special configuration
array
$_unconfigurable
= array(Methods that are not configurable via setOptions and setConfig
Zend_Controller_Action_Helper_ViewRenderer
$_viewRenderer
(line 115)
string
$_viewSuffixOrig
(line 121)
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
addActionContext (line 1137)
Add one or more contexts to an action
addActionContexts (line 1207)
Add multiple action/context pairs at once
addContext (line 949)
Add new context
addContexts (line 987)
Add multiple contexts
addHeader (line 547)
Add header to context
addHeaders (line 596)
Add multiple headers at once for a given context
clearActionContexts (line 1358)
Clear all contexts for a given controller action or all actions
clearCallbacks (line 859)
Clear all callbacks for a given context
clearContexts (line 1054)
Remove all contexts
clearHeaders (line 702)
Clear all headers for a given context
direct (line 220)
Strategy pattern: return object
getActionContexts (line 1301)
Get contexts for a given action or all actions in the controller
getAutoDisableLayout (line 936)
Retrieve auto layout disable flag
getAutoJsonSerialization (line 354)
Get JSON context auto-serialization flag
getCallback (line 811)
Get a single callback for a given context and trigger
getCallbacks (line 828)
Get all callbacks for a given context
getContext (line 1016)
Retrieve context specification
getContextParam (line 883)
Return context format request parameter name
getContexts (line 1029)
Retrieve context definitions
getCurrentContext (line 1065)
Return current context, if any
getDefaultContext (line 914)
Return default context
getHeader (line 649)
Retrieve context header
Returns the value of a given header for a given context type
getHeaders (line 669)
Retrieve context headers
Returns all headers for a context as key/value pairs
getSuffix (line 484)
Retrieve suffix for given context type
hasActionContext (line 1237)
Does a particular controller action have the given context(s)?
hasContext (line 505)
Does the given context exist?
init (line 165)
Initialize at start of action controller
Reset the view script suffix to the original state, or store the original state.
initContext (line 232)
Initialize context detection and switching
initJsonContext (line 324)
JSON context extra initialization
Turns off viewRenderer auto-rendering
postDispatch (line 1078)
Post dispatch processing
Execute postDispatch callback for current context, if available
postJsonContext (line 1107)
JSON post processing
JSON serialize view variables to response body
removeActionContext (line 1332)
Remove one or more contexts for a given controller action
removeCallback (line 841)
Clear a callback for a given context and trigger
removeContext (line 1040)
Remove a context
removeHeader (line 683)
Remove a single header from a context
setActionContext (line 1177)
Set a context as available for a given controller action
setActionContexts (line 1221)
Overwrite and set multiple action contexts at once
setAutoDisableLayout (line 925)
Set flag indicating if layout should be disabled
setAutoJsonSerialization (line 343)
Should JSON contexts auto-serialize?
setCallback (line 744)
Set a callback for a given context and trigger
setCallbacks (line 790)
Set callbacks for a given context
Callbacks should be in trigger/callback pairs.
setContext (line 975)
Overwrite existing context
setContextParam (line 872)
Set name of parameter to use when determining context format
setContexts (line 1001)
Set multiple contexts, after first removing all
setDefaultContext (line 895)
Indicate default context to use when no context format provided
setHeader (line 578)
Customize response header to use when switching context
Passing an empty header value to the setters disables the response header.
setHeaders (line 630)
Set multiple headers at once for a given context
setOptions (line 180)
Configure object from array of options
setSuffix (line 438)
Customize view script suffix to use when switching context.
Passing an empty suffix value to the setters disables the view script suffix change.
Constructor __construct (line 129)
Constructor
_getViewRenderer (line 1385)
Retrieve ViewRenderer
_setCallbacks (line 769)
Set callbacks from array of context => callbacks pairs
_setHeaders (line 611)
Set headers from context => headers pairs
_setSuffix (line 365)
Set suffix from array
_validateTrigger (line 717)
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