Added caching flag to database.
This commit is contained in:
parent
237cb22990
commit
02c0eef632
4 changed files with 75 additions and 10 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue