This commit is contained in:
parent
56432118c9
commit
e5f76c44bb
1 changed files with 9 additions and 2 deletions
|
@ -149,9 +149,16 @@ abstract class Doctrine_Configurable extends Doctrine_Locator_Injectable
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getParams()
|
public function getParams($namespace = null)
|
||||||
{
|
{
|
||||||
return $his->_params;
|
if (isset($namespace)) {
|
||||||
|
if ( ! isset($this->_params[$namespace])) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->_params[$namespace];
|
||||||
|
}
|
||||||
|
return $his->_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setParam($name, $value, $namespace = null)
|
public function setParam($name, $value, $namespace = null)
|
||||||
|
|
Loading…
Add table
Reference in a new issue