Provided access to Database caching setting via caching()
This commit is contained in:
parent
668a929a1c
commit
fdd06daed3
4
classes/Database.php
Normal file
4
classes/Database.php
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
|
abstract class Database extends lnApp_Database {}
|
||||||
|
?>
|
18
classes/lnApp/Database.php
Normal file
18
classes/lnApp/Database.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class overrides Kohana's Database
|
||||||
|
*
|
||||||
|
* This file contains enhancements for Kohana, that should be considered upstream and maybe havent been yet.
|
||||||
|
*
|
||||||
|
* @package lnApp
|
||||||
|
* @category Modifications
|
||||||
|
* @author Deon George
|
||||||
|
* @copyright (c) 2014 Deon George
|
||||||
|
* @license http://dev.leenooks.net/license.html
|
||||||
|
*/
|
||||||
|
abstract class lnApp_Database extends Kohana_Database {
|
||||||
|
public function caching() {
|
||||||
|
return $this->_config['caching'];
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user