This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
lnapp/classes/lnApp/Database.php

26 lines
731 B
PHP

<?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 {
/**
* Return a database configuration setting
*
* @param string Configuration value to return
* @return string|NULL Value of setting or NULL if it doesnt exist
*/
public function config($key) {
return isset($this->_config[$key]) ? $this->_config[$key] : NULL;
}
}
?>