diff options
author | admin <devnull@localhost> | 2006-09-26 04:09:47 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-26 04:09:47 +0200 |
commit | 30c3b9709a12b7346c7057e656a491ffb9168f55 (patch) | |
tree | 4609af9f3b8f0a6f47cf23dd23fdc02ac4acf9ed /system | |
parent | 910d8620519d777ab45bdad5fb6dc9f05c6b2869 (diff) |
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Controller.php | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php index da5f2e072..afd963a7a 100644 --- a/system/libraries/Controller.php +++ b/system/libraries/Controller.php @@ -397,49 +397,7 @@ class Controller extends CI_Base { $obj->db =& $DB; } // END _ci_init_database() - - - // -------------------------------------------------------------------- - - /** - * Initialize Database Utilities Class - * - * @access private - * @param mixed database platform - * @param bool whether to return the object - * @return void - */ - function _ci_init_dbutil($db = '', $return = FALSE) - { - if ($this->_ci_is_loaded('dbutils') == TRUE AND $return == FALSE) - { - return; - } - - if ($this->_ci_is_loaded('db') == FALSE) - { - $this->_ci_init_database(); - } - - require_once(BASEPATH.'database/DB_utility'.EXT); - require_once(BASEPATH.'database/drivers/'.$this->db->dbdriver.'/'.$this->db->dbdriver.'_utility'.EXT); - - // Instantiate the DB adapter - $driver = 'CI_DB_'.$this->db->dbdriver.'_utility'; - $DB = new $driver(); - - if ($return === TRUE) - { - return $DB; - } - - $obj =& get_instance(); - $obj->ci_is_loaded[] = 'dbutils'; - $obj->dbutil =& $DB; - } - // END _ci_init_database() - // -------------------------------------------------------------------- /** |