Commit 53413e53 authored by zYne's avatar zYne

--no commit message

--no commit message
parent e5f76c44
......@@ -151,14 +151,20 @@ abstract class Doctrine_Configurable extends Doctrine_Locator_Injectable
public function getParams($namespace = null)
{
if (isset($namespace)) {
if ( ! isset($this->_params[$namespace])) {
return null;
}
return $this->_params[$namespace];
if ($namespace = null) {
$namespace = $this->getAttribute(Doctrine::ATTR_DEFAULT_PARAM_NAMESPACE);
}
if ( ! isset($this->_params[$namespace])) {
return null;
}
return $his->_params;
return $this->_params[$namespace];
}
public function getParamNamespaces()
{
return array_keys($this->_params);
}
public function setParam($name, $value, $namespace = null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment