Zend Framework
1.12
|
Public Member Functions | |
getVersion () | |
__construct ($route, $defaults=array(), $reqs=array(), Zend_Translate $translator=null, $locale=null) | |
Prepares the route for mapping by splitting (exploding) it to a corresponding atomic parts. | |
match ($path, $partial=false) | |
Matches a user submitted path with parts defined by a map. | |
assemble ($data=array(), $reset=false, $encode=false, $partial=false) | |
Assembles user submitted parameters forming a URL path defined by this route. | |
getDefault ($name) | |
Return a single parameter of route's defaults. | |
getDefaults () | |
Return an array of defaults. | |
getVariables () | |
Get all variables which are used by the route. | |
setTranslator (Zend_Translate $translator) | |
Set a translator. | |
getTranslator () | |
Get the translator. | |
setLocale ($locale) | |
Set a locale. | |
getLocale () | |
Get the locale. | |
![]() | |
getVersion () | |
Get the version of the route. | |
setMatchedPath ($path) | |
Set partially matched path. | |
getMatchedPath () | |
Get partially matched path. | |
isAbstract ($flag=null) | |
Check or set wether this is an abstract route or not. | |
chain (Zend_Controller_Router_Route_Abstract $route, $separator= '/') | |
Create a new chain. | |
![]() | |
match ($path) | |
assemble ($data=array(), $reset=false, $encode=false) | |
Static Public Member Functions | |
static | getInstance (Zend_Config $config) |
Instantiates route based on passed Zend_Config structure. | |
static | setDefaultTranslator (Zend_Translate $translator=null) |
Set a default translator. | |
static | getDefaultTranslator () |
Get the default translator. | |
static | setDefaultLocale ($locale=null) |
Set a default locale. | |
static | getDefaultLocale () |
Get the default locale. | |
Protected Attributes | |
$_translator | |
$_locale | |
$_isTranslated = false | |
$_translatable = array() | |
$_urlVariable = ':' | |
$_urlDelimiter = self::URI_DELIMITER | |
$_regexDelimiter = '#' | |
$_defaultRegex = null | |
$_variables = array() | |
$_parts = array() | |
$_defaults = array() | |
$_requirements = array() | |
$_values = array() | |
$_wildcardData = array() | |
$_staticCount = 0 | |
![]() | |
$_isAbstract = false | |
$_matchedPath = null | |
Static Protected Attributes | |
static | $_defaultTranslator |
static | $_defaultLocale |
Additional Inherited Members | |
![]() | |
const | URI_DELIMITER = '/' |
URI delimiter. | |
__construct | ( | $route, | |
$defaults = array() , |
|||
$reqs = array() , |
|||
Zend_Translate | $translator = null , |
||
$locale = null |
|||
) |
Prepares the route for mapping by splitting (exploding) it to a corresponding atomic parts.
These parts are assigned a position which is later used for matching and preparing values.
string | $route | Map used to match with later submitted URL path |
array | $defaults | Defaults for map variables with keys as variable names |
array | $reqs | Regular expression requirements for variables (keys as variable names) |
Zend_Translate | $translator | Translator to use for this instance |
assemble | ( | $data = array() , |
|
$reset = false , |
|||
$encode = false , |
|||
$partial = false |
|||
) |
Assembles user submitted parameters forming a URL path defined by this route.
array | $data | An array of variable and value pairs used as parameters |
boolean | $reset | Whether or not to set route defaults with those provided in $data |
getDefault | ( | $name | ) |
Return a single parameter of route's defaults.
string | $name | Array key of the parameter |
|
static |
Get the default locale.
getDefaults | ( | ) |
Return an array of defaults.
|
static |
Get the default translator.
|
static |
Instantiates route based on passed Zend_Config structure.
Zend_Config | $config | Configuration object |
Implements Zend_Controller_Router_Route_Interface.
getLocale | ( | ) |
Get the locale.
getTranslator | ( | ) |
Get the translator.
Zend_Controller_Router_Exception | When no translator can be found |
getVariables | ( | ) |
Get all variables which are used by the route.
getVersion | ( | ) |
match | ( | $path, | |
$partial = false |
|||
) |
Matches a user submitted path with parts defined by a map.
Assigns and returns an array of variables on a successful match.
string | $path | Path used to match against this routing map |
|
static |
Set a default locale.
mixed | $locale |
|
static |
setLocale | ( | $locale | ) |
Set a locale.
mixed | $locale |
setTranslator | ( | Zend_Translate | $translator | ) |
|
staticprotected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |