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.
Route
mixed $_defaultLocale = ''Default locale
Details $_defaultRegex = 'null'
DetailsZend_Translate $_defaultTranslator = ''Default translator
Detailsarray $_defaults = 'array'Holds user submitted default values for route's variables. Name and value pairs.
Detailsboolean $_isTranslated = 'false'Wether this is a translated route or not
Detailsmixed $_locale = ''Locale
Detailsarray $_parts = 'array'Holds Route patterns for all URL parts. In case of a variable it stores it's regex requirement or null. In case of a static part, it holds only it's direct value.
In case of a wildcard, it stores an asterisk (*)
Details $_regexDelimiter = '#'
Detailsarray $_requirements = 'array'Holds user submitted regular expression patterns for route's variables' values.
Name and value pairs.
Detailsint $_staticCount = '0'Helper var that holds a count of route pattern's static parts for validation
Detailsarray $_translatable = 'array'Translatable variables
DetailsZend_Translate $_translator = ''Translator
Details $_urlDelimiter = '/'
Details $_urlVariable = ':'
Detailsarray $_values = 'array'Associative array filled on match() that holds matched path values for given variable names.
Detailsarray $_variables = 'array'Holds names of all route's pattern variable names. Array index holds a position in URL.
Detailsarray $_wildcardData = 'array'Associative array filled on match() that holds wildcard variable names and values.
Details__construct(
string $route, array $defaults
=
array, 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.
Detailsassemble(
array $data
=
array, boolean $reset
=
false, $encode
=
false, $partial
=
false
)
:
stringAssembles user submitted parameters forming a URL path defined by this route
DetailsgetDefault(
string $name
)
:
stringReturn a single parameter of route's defaults
DetailsgetDefaultLocale(
)
:
mixedGet the default locale
DetailsgetDefaultTranslator(
)
:
Zend_TranslateGet the default translator
DetailsgetDefaults(
)
:
arrayReturn an array of defaults
DetailsgetInstance(
Zend_Config $config
)
:
Instantiates route based on passed Zend_Config structure
DetailsgetLocale(
)
:
mixedGet the locale
DetailsgetTranslator(
)
:
Zend_TranslateGet the translator
DetailsgetVariables(
)
:
arrayGet all variables which are used by the route
DetailsgetVersion(
)
:
Detailsmatch(
string $path, $partial
=
false
)
:
array|falseMatches a user submitted path with parts defined by a map. Assigns and returns an array of variables on a successful match.
DetailssetDefaultLocale(
mixed $locale
=
null
)
:
voidSet a default locale
DetailssetDefaultTranslator(
Zend_Translate $translator
=
null
)
:
voidSet a default translator
DetailssetLocale(
mixed $locale
)
:
voidSet a locale
DetailssetTranslator(
Zend_Translate $translator
)
:
voidSet a translator
Details