Zend_Controller_FrontLocated in /Controller/Front.php (line 58)
void|Zend_Controller_Response_Abstract
dispatch
([Zend_Controller_Request_Abstract $request = null], [Zend_Controller_Response_Abstract $response = null])
static Zend_Controller_Front
$_instance
= null (line 87)
Singleton instance
Marked only as protected to allow extension of the class. To extend, simply override getInstance().
string
$_baseUrl
= null (line 64)
Base URL
string|array
$_controllerDir
= null (line 71)
Directory|ies where controllers are stored
Zend_Controller_Dispatcher_Interface
$_dispatcher
= null (line 77)
Instance of Zend_Controller_Dispatcher_Interface
array
$_invokeParams
= array() (line 94)
Array of invocation parameters to use when instantiating action
controllers
string
$_moduleControllerDirectoryName
= 'controllers' (line 100)
Subdirectory within a module containing controllers; defaults to 'controllers'
Zend_Controller_Plugin_Broker
$_plugins
= null (line 106)
Instance of Zend_Controller_Plugin_Broker
Zend_Controller_Request_Abstract
$_request
= null (line 112)
Instance of Zend_Controller_Request_Abstract
Zend_Controller_Response_Abstract
$_response
= null (line 118)
Instance of Zend_Controller_Response_Abstract
boolean
$_returnResponse
= false (line 125)
Whether or not to return the response prior to rendering output while in dispatch(); default is to send headers and render output.
Zend_Controller_Router_Interface
$_router
= null (line 131)
Instance of Zend_Controller_Router_Interface
boolean
$_throwExceptions
= false (line 138)
Whether or not exceptions encountered in dispatch() should be
thrown or trapped in the response object
static run (line 225)
Convenience feature, calls setControllerDirectory()->setRouter()->dispatch()
In PHP 5.1.x, a call to a static method never populates $this -- so run() may actually be called after setting up your front controller.
addControllerDirectory (line 243)
Add a controller directory to the controller directory stack
If $args is presented and is a string, uses it for the array key mapping to the directory specified.
addModuleDirectory (line 317)
Specify a directory as containing modules
Iterates through the directory, adding any subdirectories as modules; the subdirectory within each module named after $_moduleControllerDirectoryName will be used as the controller directory path.
clearParams (line 676)
Clear the controller parameter stack
By default, clears all parameters. If a parameter name is given, clears only that parameter; if an array of parameter names is provided, clears each.
dispatch (line 789)
Dispatch an HTTP request to a controller/action.
getBaseUrl (line 542)
Retrieve the currently set base URL
getControllerDirectory (line 293)
Retrieve controller directory
Retrieves:
getDefaultAction (line 397)
Retrieve the default action (unformatted string)
getDefaultControllerName (line 374)
Retrieve the default controller (unformatted string)
getDefaultModule (line 420)
Retrieve the default module
getDispatcher (line 566)
Return the dispatcher object.
getModuleControllerDirectoryName (line 351)
Return the directory name within a module containing controllers
getParam (line 647)
Retrieve a single parameter from the controller parameter stack
getParams (line 661)
Retrieve action controller instantiation parameters
getPlugin (line 723)
Retrieve a plugin or plugins by class
getPlugins (line 733)
Retrieve all plugins
getRequest (line 456)
Return the request object.
getResponse (line 610)
Return the response object.
getRouter (line 496)
Return the router object.
Instantiates a Zend_Controller_Router_Rewrite object if no router currently set.
resetInstance (line 180)
Resets all object properties of the singleton instance
Primarily used for testing; could be used to chain front controllers.
returnResponse (line 769)
Set whether dispatch() should return the response without first rendering output. By default, output is rendered and dispatch() returns nothing.
setBaseUrl (line 526)
Set the base URL used for requests
Use to set the base URL segment of the REQUEST_URI to use when determining PATH_INFO, etc. Examples:
setControllerDirectory (line 265)
Set controller directory
Stores controller directory to pass to dispatcher. May be an array of directories or a string containing a single directory.
setDefaultAction (line 385)
Set the default action (unformatted string)
setDefaultControllerName (line 362)
Set the default controller (unformatted string)
setDefaultModule (line 408)
Set the default module name
setDispatcher (line 555)
Set the dispatcher object. The dispatcher is responsible for taking a Zend_Controller_Dispatcher_Token object, instantiating the controller, and call the action method of the controller.
setModuleControllerDirectoryName (line 339)
Set the directory name within a module containing controllers
setParam (line 622)
Add or modify a parameter to use when instantiating an action controller
setParams (line 635)
Set parameters to pass to action controller constructors
setRequest (line 436)
Set request class/object
Set the request object. The request holds the request environment.
If a class name is provided, it will instantiate it
setResponse (line 590)
Set response class/object
Set the response object. The response is a container for action responses and headers. Usage is optional.
If a class name is provided, instantiates a response object.
setRouter (line 474)
Set router class/object
Set the router object. The router is responsible for mapping the request to a controller and action.
If a class name is provided, instantiates router with any parameters registered via setParam() or setParams().
throwExceptions (line 748)
Set whether exceptions encounted in the dispatch loop should be thrown or caught and trapped in the response object
Default behaviour is to trap them in the response object; call this method to have them thrown.
unregisterPlugin (line 711)
Unregister a plugin.
Documentation generated on Sun, 27 May 2007 23:24:19 -0700 by phpDocumentor 1.3.2