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.
StaticRoute is used for managing static URIs.
It's a lot faster compared to the standard Route implementation.
$_defaults = 'array'
$_route = 'null'
__construct(
string $route, array $defaults
=
array
)
:
Prepares the route for mapping.
assemble(
array $data
=
array, $reset
=
false, $encode
=
false, $partial
=
false
)
:
string
Assembles a URL path defined by this route
getDefault(
string $name
)
:
string
Return a single parameter of route's defaults
getDefaults(
)
:
array
Return an array of defaults
getInstance(
Zend_Config $config
)
:
Instantiates route based on passed Zend_Config structure
getVersion(
)
:
match(
string $path, $partial
=
false
)
:
array|false
Matches a user submitted path with a previously defined route.
Assigns and returns an array of defaults on a successful match.