Added caching flag to database.

This commit is contained in:
Josh Sherman 2011-10-30 17:30:05 -04:00
parent 237cb22990
commit 02c0eef632
4 changed files with 75 additions and 10 deletions

View file

@ -27,6 +27,14 @@
*/
class Module extends Object
{
/**
* Cache object
*
* @access protected
* @var object
*/
protected $cache = null;
/**
* Database object
*
@ -156,7 +164,8 @@ class Module extends Object
{
parent::__construct();
$this->db = Database::getInstance();
$this->cache = Cache::getInstance();
$this->db = Database::getInstance();
if ($autorun === true)
{