Simple first implementation of a router, to be replaced with rules-based URI processor.

category Zend
package Zend_Controller
subpackage Router
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct(array $params = array()

Parameters

$params

array

Clear the controller parameter stack

clearParams($name = null) : \Zend_Controller_Router_Abstract

By default, clears all parameters. If a parameter name is given, clears only that parameter; if an array of parameter names is provided, clears each.

inherited_from \Zend_Controller_Router_Interface::clearParams()

Parameters

$name

Returns

\Zend_Controller_Router_Abstract

Retrieve Front Controller

getFrontController() : \Zend_Controller_Front
inherited_from \Zend_Controller_Router_Interface::getFrontController()

Returns

\Zend_Controller_Front

Retrieve a single parameter from the controller parameter stack

getParam(string $name) : mixed
inherited_from \Zend_Controller_Router_Interface::getParam()

Parameters

$name

string

Returns

mixed

Retrieve action controller instantiation parameters

getParams() : array
inherited_from \Zend_Controller_Router_Interface::getParams()

Returns

array

Set Front Controller

setFrontController(\Zend_Controller_Front $controller) : \Zend_Controller_Router_Interface
inherited_from \Zend_Controller_Router_Interface::setFrontController()

Parameters

$controller

\Zend_Controller_Front

Returns

\Zend_Controller_Router_Interface

Add or modify a parameter to use when instantiating an action controller

setParam(string $name, mixed $value) : \Zend_Controller_Router_Abstract
inherited_from \Zend_Controller_Router_Interface::setParam()

Parameters

$name

string

$value

mixed

Returns

\Zend_Controller_Router_Abstract

Set parameters to pass to action controller constructors

setParams(array $params) : \Zend_Controller_Router_Abstract
inherited_from \Zend_Controller_Router_Interface::setParams()

Parameters

$params

array

Returns

\Zend_Controller_Router_Abstract

 Properties

 

Front controller instance

$_frontController : \Zend_Controller_Front

Default

 

Array of invocation parameters to use when instantiating action controllers

$_invokeParams : array

Default

array()

 Constants

 

URI delimiter

URI_DELIMITER = '/'