Add method Config::isEmpty()

This commit is contained in:
Eric Lippmann 2014-10-31 11:20:17 +01:00
parent b38e3affb9
commit 0124a33037
1 changed files with 10 additions and 0 deletions

View File

@ -167,4 +167,14 @@ class Config extends Zend_Config
{
return self::$configDir . DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR);
}
/**
* Is the configuration empty?
*
* @return bool
*/
public function isEmpty()
{
return empty($this->_data);
}
}