Controller/Dispatcher/Interface.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Controller
- Subpackage
- Dispatcher
- Version
- $Id$
\Zend_Controller_Dispatcher_Interface
Package: Zend_Controller\Dispatcher- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
addControllerDirectory(string $path, string $args = null) : \Zend_Controller_Dispatcher_Interface
Add a controller directory to the controller directory stack
ParametersName | Type | Description |
---|
$path | string | |
---|
$args | string | |
---|
Returns clearParams( $name = null) : \Zend_Controller_Dispatcher_Interface
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.
ParametersReturnsformatActionName(string $unformatted) : string
Formats 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.
ParametersName | Type | Description |
---|
$unformatted | string | |
---|
Returns formatControllerName(string $unformatted) : string
Formats 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.
ParametersName | Type | Description |
---|
$unformatted | string | |
---|
Returns formatModuleName(string $unformatted) : string
Formats 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.
ParametersName | Type | Description |
---|
$unformatted | string | |
---|
Returns getParam(string $name) : mixed
Retrieve a single parameter from the controller parameter stack
ParametersName | Type | Description |
---|
$name | string | |
---|
Returns isValidModule(string $module) : boolean
Whether or not a given module is valid
ParametersName | Type | Description |
---|
$module | string | |
---|
Returns setControllerDirectory( $path) : \Zend_Controller_Dispatcher_Interface
Set the directory where controller files are stored
Specify a string or an array; if an array is specified, all paths will be
added.
ParametersReturnssetParam(string $name, mixed $value) : \Zend_Controller_Dispatcher_Interface
Add or modify a parameter with which to instantiate an Action Controller
ParametersName | Type | Description |
---|
$name | string | |
---|
$value | mixed | |
---|
Returns setParams(array $params) : \Zend_Controller_Dispatcher_Interface
Set an array of a parameters to pass to the Action Controller constructor
ParametersName | Type | Description |
---|
$params | array | |
---|
Returns