_assign_libraries(); log_message('debug', "Model Class Initialized"); } /** * Assign Libraries * * Creates local references to all currently instantiated objects * so that any syntax that can be legally used in a controller * can be used within models. * * @access private */ function _assign_libraries() { $CI =& get_instance(); foreach (array_keys(get_object_vars($CI)) as $key) { $this->$key =& $CI->$key; } } } // END Model Class ?>