Shit ton of updates.

git-svn-id: http://svn.cleancode.org/svn/pickles@81 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
Josh Sherman 2008-10-20 01:03:00 +00:00
parent 5238e3f80d
commit 42e316fc05
9 changed files with 281 additions and 148 deletions

View file

@ -103,6 +103,27 @@ class Config extends Object {
return false;
}
/**
* Gets the caching value
*
* @return mixed The module's cache life span setting or true or false
*/
public function getCaching() {
if (isset($this->modules->caching)) {
if ($this->modules->caching == 'true') {
return true;
}
else if ($this->modules->caching == 'false') {
return false;
}
else {
return (int)$this->modules->caching;
}
}
return false;
}
/**
* Gets the authentication value
*