git-svn-id: http://svn.cleancode.org/svn/pickles@76 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
Josh Sherman 2008-10-15 12:51:26 +00:00
parent e0e0ab0aeb
commit 47b3271bde
5 changed files with 41 additions and 12 deletions

View file

@ -103,6 +103,19 @@ class Config extends Object {
return false;
}
/**
* Gets the authentication value
*
* @return boolean The model's authentication setting or false
*/
public function getDebug() {
if (isset($this->models->debug) && $this->models->debug == 'true') {
return true;
}
return false;
}
/**
* Alias for $config->models->default with string cast
*