Inheritances
Files
Overview
FRAMES
NO FRAMES

Abstract class Zend_Controller_Router_Abstract

Zend_Controller
|-Zend_Controller_Router
|-abstract class Zend_Controller_Router_Abstract implements Zend_Controller_Router_Interface
Simple first implementation of a router, to be replaced
with rules-based URI processor.
CategoryZend
PackageZend_Controller
SubpackageRouter
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Summary

Instance fields
# $_frontController Front controller instance
# $_invokeParams Array of invocation parameters to use when instantiating action
Instance methods
+ __construct() Constructor
+ clearParams() Clear the controller parameter stack
+ getFrontController() Retrieve Front Controller
+ getParam() Retrieve a single parameter from the controller parameter stack
+ getParams() Retrieve action controller instantiation parameters
+ setFrontController() Set Front Controller
+ setParam() Add or modify a parameter to use when instantiating an action controller
+ setParams() Set parameters to pass to action controller constructors

Details

Instance fields

$_frontController
protected $_frontController
Front controller instance
$_invokeParams
protected $_invokeParams = array()
Array of invocation parameters to use when instantiating action
controllers
Var array

Instance methods

__construct()
public function __construct( array $params = array())
Constructor
Parameters
array $params
Returns void
clearParams()
public function clearParams( $name = null)
Clear the controller parameter stack

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.
Parameters
$name
Returns Zend_Controller_Router
getFrontController()
public function getFrontController( )
Retrieve Front Controller
getParam()
public function getParam( $name)
Retrieve a single parameter from the controller parameter stack
Parameters
string $name
Returns mixed
getParams()
public function getParams( )
Retrieve action controller instantiation parameters
Returns array
setFrontController()
public function setFrontController( Zend_Controller_Front $controller)
Set Front Controller
Parameters
Zend_Controller_Front $controller
setParam()
public function setParam( $name
$value
)
Add or modify a parameter to use when instantiating an action controller
Parameters
string $name
mixed $value
Returns Zend_Controller_Router
setParams()
public function setParams( array $params)
Set parameters to pass to action controller constructors
Parameters
array $params
Returns Zend_Controller_Router