API16:JRouter/setVars
From Joomla! Documentation
Description
Set the router variable array
Syntax
setVars($vars=array(), $merge=true)
| Parameter Name | Default Value | Description |
|---|---|---|
| $vars | array() | An associative array with variables |
| $merge | true | If True, the array will be merged instead of overwritten |
Defined in
libraries/joomla/application/router.php
Importing
jimport( 'joomla.application.router' );
Source Body
public function setVars($vars = array(), $merge = true)
{
if ($merge) {
$this->_vars = array_merge($this->_vars, $vars);
} else {
$this->_vars = $vars;
}
}
Examples
Code Examples