Updates.
git-svn-id: http://svn.cleancode.org/svn/pickles@76 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
parent
e0e0ab0aeb
commit
47b3271bde
5 changed files with 41 additions and 12 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue