summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-06 19:29:12 +0200
committeradmin <devnull@localhost>2006-10-06 19:29:12 +0200
commitfd2750b8f85b4f204e536d255742e18018c3f1f2 (patch)
treea804a7216f8c7e87246286df07ef7942bb43d0df /system/database/DB_driver.php
parent0a35e3d53fcfd27427bcc0a5602eaa3e289888a1 (diff)
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index e8c4a8236..b89ebbf8d 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -156,6 +156,23 @@ class CI_DB_driver {
}
}
+ // --------------------------------------------------------------------
+
+ /**
+ * Load the Utilities Class
+ *
+ * @access public
+ * @return string
+ */
+ function load_utilities()
+ {
+ $obj =& get_instance();
+
+ require_once(BASEPATH.'database/DB_utility'.EXT);
+ require_once(BASEPATH.'database/drivers/'.$this->dbdriver.'/'.$this->dbdriver.'_utility'.EXT);
+ $class = 'CI_DB_'.$this->dbdriver.'_utility';
+ $obj->dbutil = new $class();
+ }
// --------------------------------------------------------------------