Handle exceptions that bubble up based on missing controllers, actions, or application errors, and forward to an error handler.
uses | |
---|---|
category | Zend |
package | Zend_Controller |
subpackage | Plugins |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
version | $Id$ |
inherited_from | \Zend_Controller_Plugin_Abstract |
__construct(Array $options = array()
) : void
Options may include:
Array
dispatchLoopShutdown() : void
dispatchLoopStartup(\Zend_Controller_Request_Abstract $request) : void
\Zend_Controller_Request_Abstract
getErrorHandlerAction() : string
string
getErrorHandlerController() : string
string
getErrorHandlerModule() : string
string
getRequest() : \Zend_Controller_Request_Abstract
\Zend_Controller_Request_Abstract
$requestgetResponse() : \Zend_Controller_Response_Abstract
\Zend_Controller_Response_Abstract
$responsepostDispatch(\Zend_Controller_Request_Abstract $request)
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.
inherited_from | \Zend_Controller_Plugin_Abstract::postDispatch() |
---|
\Zend_Controller_Request_Abstract
postDispatch(\Zend_Controller_Request_Abstract $request) : void
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.
\Zend_Controller_Request_Abstract
preDispatch(\Zend_Controller_Request_Abstract $request)
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.
inherited_from | \Zend_Controller_Plugin_Abstract::preDispatch() |
---|
\Zend_Controller_Request_Abstract
preDispatch(\Zend_Controller_Request_Abstract $request) : void
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.
\Zend_Controller_Request_Abstract
routeShutdown(\Zend_Controller_Request_Abstract $request)
Called after Zend_Controller_Front exits from the router.
inherited_from | \Zend_Controller_Plugin_Abstract::routeShutdown() |
---|
\Zend_Controller_Request_Abstract
routeShutdown(\Zend_Controller_Request_Abstract $request) : void
Called after Zend_Controller_Front exits from the router.
\Zend_Controller_Request_Abstract
routeStartup(\Zend_Controller_Request_Abstract $request) : void
\Zend_Controller_Request_Abstract
setErrorHandler(array $options = array()
) : \Zend_Controller_Plugin_ErrorHandler
array
\Zend_Controller_Plugin_ErrorHandler
setErrorHandlerAction(string $action) : \Zend_Controller_Plugin_ErrorHandler
string
\Zend_Controller_Plugin_ErrorHandler
setErrorHandlerController(string $controller) : \Zend_Controller_Plugin_ErrorHandler
string
\Zend_Controller_Plugin_ErrorHandler
setErrorHandlerModule(string $module) : \Zend_Controller_Plugin_ErrorHandler
string
\Zend_Controller_Plugin_ErrorHandler
setRequest(\Zend_Controller_Request_Abstract $request) : \Zend_Controller_Plugin_Abstract
\Zend_Controller_Request_Abstract
\Zend_Controller_Plugin_Abstract
setResponse(\Zend_Controller_Response_Abstract $response) : \Zend_Controller_Plugin_Abstract
\Zend_Controller_Response_Abstract
\Zend_Controller_Plugin_Abstract
_handleError(\Zend_Controller_Request_Abstract $request) : void
If the 'noErrorHandler' front controller flag has been set, returns early.
\Zend_Controller_Request_Abstract
$_errorAction : string
'error'
$_errorController : string
'error'
$_errorModule : string
$_exceptionCountAtFirstEncounter : integer
0
$_isInsideErrorHandlerLoop : boolean
false
$_request : \Zend_Controller_Request_Abstract
$_response : \Zend_Controller_Response_Abstract
EXCEPTION_NO_ACTION = 'EXCEPTION_NO_ACTION'
EXCEPTION_NO_CONTROLLER = 'EXCEPTION_NO_CONTROLLER'
EXCEPTION_NO_ROUTE = 'EXCEPTION_NO_ROUTE'
EXCEPTION_OTHER = 'EXCEPTION_OTHER'