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

@ -29,7 +29,7 @@ abstract class Database_Common extends Object
* @access protected
* @var string
*/
protected $driver;
protected $driver = null;
/**
* Hostname for the server
@ -79,6 +79,14 @@ abstract class Database_Common extends Object
*/
protected $database = null;
/**
* Whether or not to use caching
*
* @access protected
* @var boolean
*/
protected $caching = false;
/**
* Connection resource
*
@ -176,6 +184,16 @@ abstract class Database_Common extends Object
return $this->database = $database;
}
/**
* Set Caching
*
* @param boolean whether or not to use cache
*/
public function setCaching($caching)
{
return $this->caching = $caching;
}
/**
* Get Driver
*