Controller/Dispatcher/Abstract.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_Abstract
Package: Zend_Controller\Dispatcher- Implements
- Children
- \Zend_Controller_Dispatcher_Standard
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
array $_invokeParams = array()
Array of invocation parameters to use when instantiating action
controllers
Default valuearray()
Details- Type
- array
array $_wordDelimiter = array('-', '.')
Word delimiter characters
Default valuearray('-', '.')
Details- Type
- array
Methods
_formatName(string $unformatted, boolean $isAction = false) : string
Formats a string from a URI into a PHP-friendly name.
By default, replaces words separated by the word separator character(s)
with camelCaps. If $isAction is false, it also preserves replaces words
separated by the path separation character with an underscore, making
the following word Title cased. All non-alphanumeric characters are
removed.
ParametersName | Type | Description |
---|
$unformatted | string | |
---|
$isAction | boolean | Defaults to false |
---|
ReturnsclearParams( $name = null) : \Zend_Controller_Dispatcher_Abstract
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 stored inside a Zend_Controller_Request_Abstract
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 stored inside a Zend_Controller_Request_Abstract
object, and reformat it to a proper 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 setDefaultControllerName(string $controller) : \Zend_Controller_Dispatcher_Abstract
Set the default controller (minus any formatting)
ParametersName | Type | Description |
---|
$controller | string | |
---|
Returns setParam(string $name, mixed $value) : \Zend_Controller_Dispatcher_Abstract
Add or modify a parameter to use when instantiating an action controller
ParametersName | Type | Description |
---|
$name | string | |
---|
$value | mixed | |
---|
Returns