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.
addControllerDirectory(
string $path, string $args
=
null
)
:
Zend_Controller_Dispatcher_InterfaceAdd a controller directory to the controller directory stack
DetailsclearParams(
null|string|array $name
=
null
)
:
Zend_Controller_Dispatcher_InterfaceClear 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.
Detailsdispatch(
Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response
)
:
voidDispatches a request object to a controller/action. If the action requests a forward to another action, a new request will be returned.
DetailsformatActionName(
string $unformatted
)
:
stringFormats a string into an action name. This is used to take a raw action name, such as one that would be packaged inside a request object, and reformat into a proper method name that would be found inside a class extending Zend_Controller_Action.
DetailsformatControllerName(
string $unformatted
)
:
stringFormats a string into a controller name. This is used to take a raw controller name, such as one that would be packaged inside a request object, and reformat it to a proper class name that a class extending Zend_Controller_Action would use.
DetailsformatModuleName(
string $unformatted
)
:
stringFormats a string into a module name. This is used to take a raw module name, such as one that would be packaged inside a request object, and reformat it to a proper directory/class name that a class extending Zend_Controller_Action would use.
DetailsgetControllerDirectory(
)
:
arrayReturn the currently set directory(ies) for controller file lookup
DetailsgetDefaultAction(
)
:
stringRetrieve the default action
DetailsgetDefaultControllerName(
)
:
stringRetrieve the default controller name
DetailsgetDefaultModule(
)
:
stringRetrieve the default module name
DetailsgetParam(
string $name
)
:
mixedRetrieve a single parameter from the controller parameter stack
DetailsgetParams(
)
:
arrayRetrieve the parameters to pass to the Action Controller constructor
DetailsgetResponse(
)
:
Zend_Controller_Response_Abstract|nullRetrieve the response object, if any
DetailsisDispatchable(
Zend_Controller_Request_Abstract $request
)
:
booleanReturns TRUE if an action can be dispatched, or FALSE otherwise.
DetailsisValidModule(
string $module
)
:
booleanWhether or not a given module is valid
DetailssetControllerDirectory(
$path
)
:
Zend_Controller_Dispatcher_InterfaceSet the directory where controller files are stored
Specify a string or an array; if an array is specified, all paths will be added.
DetailssetParam(
string $name, mixed $value
)
:
Zend_Controller_Dispatcher_InterfaceAdd or modify a parameter with which to instantiate an Action Controller
DetailssetParams(
array $params
)
:
Zend_Controller_Dispatcher_InterfaceSet an array of a parameters to pass to the Action Controller constructor
DetailssetResponse(
Zend_Controller_Response_Abstract|null $response
=
null
)
:
voidSet the response object to use, if any
Details