Provided access to Database caching setting via caching()

This commit is contained in:
Deon George 2015-10-08 15:59:42 +11:00
parent 668a929a1c
commit fdd06daed3
2 changed files with 22 additions and 0 deletions

4
classes/Database.php Normal file
View File

@ -0,0 +1,4 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
abstract class Database extends lnApp_Database {}
?>

View 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'];
}
}