Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Zend_Controller_Router_Route_Chain Class Reference

Public Member Functions

 chain (Zend_Controller_Router_Route_Abstract $route, $separator=self::URI_DELIMITER)
 Add a route to this chain.
 
 match ($request, $partial=null)
 Matches a user submitted path with a previously defined route.
 
 assemble ($data=array(), $reset=false, $encode=false)
 Assembles a URL path defined by this route.
 
 setRequest (Zend_Controller_Request_Abstract $request=null)
 Set the request object for this and the child routes.
 
 getDefault ($name)
 Return a single parameter of route's defaults.
 
 getDefaults ()
 Return an array of defaults.
 
- Public Member Functions inherited from Zend_Controller_Router_Route_Abstract
 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.
 
- Public Member Functions inherited from Zend_Controller_Router_Route_Interface
 match ($path)
 

Static Public Member Functions

static getInstance (Zend_Config $config)
 Instantiates route based on passed Zend_Config structure.
 

Protected Attributes

 $_routes = array()
 
 $_separators = array()
 
- Protected Attributes inherited from Zend_Controller_Router_Route_Abstract
 $_isAbstract = false
 
 $_matchedPath = null
 

Additional Inherited Members

- Public Attributes inherited from Zend_Controller_Router_Route_Abstract
const URI_DELIMITER = '/'
 URI delimiter.
 

Member Function Documentation

assemble (   $data = array(),
  $reset = false,
  $encode = false 
)

Assembles a URL path defined by this route.

Parameters
array$dataAn array of variable and value pairs used as parameters
bool$reset
bool$encode
Returns
string Route path with user submitted parameters

Implements Zend_Controller_Router_Route_Interface.

chain ( Zend_Controller_Router_Route_Abstract  $route,
  $separator = self::URI_DELIMITER 
)

Add a route to this chain.

Parameters
Zend_Controller_Router_Route_Abstract$route
string$separator
Returns
Zend_Controller_Router_Route_Chain
getDefault (   $name)

Return a single parameter of route's defaults.

Parameters
string$nameArray key of the parameter
Returns
string Previously set default
getDefaults ( )

Return an array of defaults.

Returns
array Route defaults
static getInstance ( Zend_Config  $config)
static

Instantiates route based on passed Zend_Config structure.

Parameters
Zend_Config$configConfiguration object
Returns
Zend_Controller_Router_Route_Chain

Implements Zend_Controller_Router_Route_Interface.

match (   $request,
  $partial = null 
)

Matches a user submitted path with a previously defined route.

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

Parameters
Zend_Controller_Request_Http$requestRequest to get the path info from
null$partial
Returns
array|false An array of assigned values or a false on a mismatch
setRequest ( Zend_Controller_Request_Abstract  $request = null)

Set the request object for this and the child routes.

Parameters
Zend_Controller_Request_Abstract | null$request
Returns
void

Member Data Documentation

$_routes = array()
protected
$_separators = array()
protected