diff options
author | admin <devnull@localhost> | 2006-09-25 04:17:30 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-25 04:17:30 +0200 |
commit | a5e812c007b8dfbc4c117df379d63060f08b096a (patch) | |
tree | f21c197786638d4579995dbe2da6731617464c60 /system/libraries/Loader.php | |
parent | c9a8bab572388bbba541f1cf8f12a46e2103e447 (diff) |
Diffstat (limited to 'system/libraries/Loader.php')
-rw-r--r-- | system/libraries/Loader.php | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index d966e2862..f4a9f821d 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -108,7 +108,7 @@ class CI_Loader { * @param string the DB credentials * @param bool whether to return the DB object * @param bool whether to enable active record (this allows us to override the config setting) - * @return mixed + * @return object */ function database($db = '', $return = FALSE, $active_record = FALSE) { @@ -125,6 +125,29 @@ class CI_Loader { } } // END database() + + // -------------------------------------------------------------------- + + /** + * Database Utilities Loader + * + * @access public + * @param string the DB platform + * @param bool whether to return the DB object + * @return object + */ + function dbutils($db = '', $return = FALSE) + { + $obj =& get_instance(); + + if ( ! is_bool($return)) + { + $return = FALSE; + } + + return $obj->_ci_init_dbutils($db, $return); + } + // END dbutils() // -------------------------------------------------------------------- |