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.
phptsmadmin/application/classes/Database.php

26 lines
734 B
PHP
Raw Normal View History

2011-06-24 01:27:21 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class overrides Kohana's Database
*
* @package lnApp/Modifications
* @category Classes
* @category Helpers
* @author Deon George
* @copyright (c) 2010 Deon George
* @license http://dev.leenooks.net/license.html
*/
abstract class Database extends Kohana_Database {
// Enable TSM SHOW commands
const SHOW = 5;
2011-08-31 21:36:33 +00:00
const SET = 6;
// We need to set our default database so that any internal calls to Database::instance() use the right database.
public static function instance($name = NULL, array $config = NULL) {
Database::$default = Kohana::$config->load('config')->client_type;
return parent::instance($name,$config);
}
2011-06-24 01:27:21 +00:00
}
?>