Class Zend_Controller_Router_Route_Static

Description

Implements interfaces:

StaticRoute is used for managing static URIs.

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

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


	
			
Variable Summary
 mixed $_defaults
 mixed $_route
Method Summary
 static void getInstance ( $config)
 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
static getInstance (line 44)

Instantiates route based on passed Zend_Config structure

  • access: public
static void getInstance ( $config)

Implementation of:
Zend_Controller_Router_Route_Interface::getInstance()
Constructor __construct (line 56)

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 83)

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 94)

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 106)

Return an array of defaults

  • return: Route defaults
  • access: public
array getDefaults ()
match (line 69)

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 Sun, 27 May 2007 23:27:52 -0700 by phpDocumentor 1.3.2