## Zend_Controller_Router_Route_Static

Description

Implements interfaces:

- Zend_Controller_Router_Route_Interface

StaticRoute is used for managing static URIs.

It's a lot faster compared to the standard Route implementation.

- license: Zend Framework License version 1.0
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Controller/Router/Route/Static.php (line 35)

Variable Summary
mixed $_defaults
mixed $_route
Method Summary
Zend_Controller_Router_Route_Static __construct (string $route, [array $defaults = array()])
string assemble ([array $data = array()])
string getDefault (name $name)
array getDefaults ()
array|false match (string $path)
Variables
mixed $_defaults = array() (line 39)

- access: protected

mixed $_route = null (line 38)

- access: protected

Methods
Constructor __construct (line 47)

Prepares the route for mapping.

- access: public

Zend_Controller_Router_Route_Static __construct (string $route, [array $defaults = array()])

- string $route: Map used to match with later submitted URL path
- array $defaults: Defaults for map variables with keys as variable names

assemble (line 74)

Assembles a URL path defined by this route

- return: Route path with user submitted parameters
- access: public

string assemble ([array $data = array()])

- array $data: An array of variable and value pairs used as parameters

Implementation of:

Zend_Controller_Router_Route_Interface::assemble()

getDefault (line 85)

Return a single parameter of route's defaults

- return: Previously set default
- access: public

string getDefault (name $name)

- name $name: Array key of the parameter

getDefaults (line 97)

Return an array of defaults

- return: Route defaults
- access: public

array getDefaults ()
match (line 60)

Matches a user submitted path with a previously defined route.

Assigns and returns an array of defaults on a successful match.

- return: An array of assigned values or a false on a mismatch
- access: public

array|false match (string $path)

- string $path: Path used to match against this routing map

Implementation of:

Zend_Controller_Router_Route_Interface::match()

Documentation generated on Wed, 21 Feb 2007 12:00:22 -0800 by phpDocumentor 1.3.1