1
0
mirror of synced 2025-03-21 15:33:51 +03:00

added hasImpl()

This commit is contained in:
zYne 2007-11-12 18:08:20 +00:00
parent 2ee78d7d85
commit a4795d6300

View File

@ -164,7 +164,7 @@ abstract class Doctrine_Configurable extends Doctrine_Locator_Injectable
public function getParamNamespaces()
{
return array_keys($this->_params);
return array_keys($this->_params);
}
public function setParam($name, $value, $namespace = null)
@ -225,6 +225,18 @@ abstract class Doctrine_Configurable extends Doctrine_Locator_Injectable
}
return $this->_impl[$template];
}
public function hasImpl($template)
{
if ( ! isset($this->_impl[$template])) {
if (isset($this->parent)) {
return $this->parent->hasImpl($template);
}
return false;
}
return true;
}
/**
* getCacheDriver