|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<?php // $Id: database.lib.php 22265 2009-07-20 23:26:43Z juliomontoya $
|
|
|
|
|
/* See license terms in /license.txt */ |
|
|
|
|
/** |
|
|
|
|
* This is the main database library for Dokeos. |
|
|
|
|
* This is the main database library for Chamilo. |
|
|
|
|
* Include/require it in your code to use its functionality. |
|
|
|
|
* Because this library contains all the basic database calls, it could be |
|
|
|
|
* replaced by another library for say, PostgreSQL, to actually use Dokeos |
|
|
|
@ -51,7 +51,8 @@ define('TABLE_MAIN_GRADEBOOK_RESULT_LOG', 'gradebook_result_log'); |
|
|
|
|
define('TABLE_MAIN_GRADEBOOK_LINK', 'gradebook_link'); |
|
|
|
|
define('TABLE_MAIN_GRADEBOOK_SCORE_DISPLAY','gradebook_score_display'); |
|
|
|
|
|
|
|
|
|
// Profiling |
|
|
|
|
|
|
|
|
|
//Profiling |
|
|
|
|
define('TABLE_MAIN_USER_FIELD', 'user_field'); |
|
|
|
|
define('TABLE_MAIN_USER_FIELD_OPTIONS', 'user_field_options'); |
|
|
|
|
define('TABLE_MAIN_USER_FIELD_VALUES', 'user_field_values'); |
|
|
|
@ -60,13 +61,11 @@ define('TABLE_MAIN_USER_FIELD_VALUES', 'user_field_values'); |
|
|
|
|
define('TABLE_MAIN_TAG', 'tag'); |
|
|
|
|
define('TABLE_MAIN_USER_REL_TAG', 'user_rel_tag'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//User groups |
|
|
|
|
define('TABLE_MAIN_GROUP', 'groups'); |
|
|
|
|
define('TABLE_MAIN_USER_REL_GROUP', 'group_rel_user'); |
|
|
|
|
define('TABLE_MAIN_GROUP_REL_TAG', 'group_rel_tag'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Search engine |
|
|
|
|
define('TABLE_MAIN_SPECIFIC_FIELD', 'specific_field'); |
|
|
|
|
define('TABLE_MAIN_SPECIFIC_FIELD_VALUES', 'specific_field_values'); |
|
|
|
@ -167,8 +166,8 @@ define('TABLE_GROUP_TUTOR', 'group_rel_tutor'); |
|
|
|
|
define('TABLE_GROUP_CATEGORY', 'group_category'); |
|
|
|
|
|
|
|
|
|
// Course dropbox tables |
|
|
|
|
define('TABLE_DROPBOX_CATEGORY', 'dropbox_category'); |
|
|
|
|
define('TABLE_DROPBOX_FEEDBACK', 'dropbox_feedback'); |
|
|
|
|
define('TABLE_DROPBOX_CATEGORY','dropbox_category'); |
|
|
|
|
define('TABLE_DROPBOX_FEEDBACK','dropbox_feedback'); |
|
|
|
|
define('TABLE_DROPBOX_POST', 'dropbox_post'); |
|
|
|
|
define('TABLE_DROPBOX_FILE', 'dropbox_file'); |
|
|
|
|
define('TABLE_DROPBOX_PERSON', 'dropbox_person'); |
|
|
|
@ -221,7 +220,7 @@ define('TABLE_COURSE_SETTING', 'course_setting'); |
|
|
|
|
|
|
|
|
|
// Course online tables |
|
|
|
|
define('TABLE_ONLINE_LINK', 'online_link'); |
|
|
|
|
define('TABLE_ONLINE_CONNECTED', 'online_connected'); |
|
|
|
|
define('TABLE_ONLINE_CONNECTED','online_connected'); |
|
|
|
|
|
|
|
|
|
// User database |
|
|
|
|
define('TABLE_PERSONAL_AGENDA', 'personal_agenda'); |
|
|
|
@ -264,23 +263,16 @@ define('TABLE_MESSAGE_ATTACHMENT', 'message_attachment'); |
|
|
|
|
define('TABLE_METADATA', 'metadata'); |
|
|
|
|
|
|
|
|
|
// Attendance Sheet |
|
|
|
|
define('TABLE_ATTENDANCE','attendance'); |
|
|
|
|
define('TABLE_ATTENDANCE', 'attendance'); |
|
|
|
|
define('TABLE_ATTENDANCE_CALENDAR', 'attendance_calendar'); |
|
|
|
|
define('TABLE_ATTENDANCE_SHEET','attendance_sheet'); |
|
|
|
|
define('TABLE_ATTENDANCE_SHEET', 'attendance_sheet'); |
|
|
|
|
define('TABLE_ATTENDANCE_RESULT', 'attendance_result'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
|
DATABASE CLASS |
|
|
|
|
/* DATABASE CLASS |
|
|
|
|
the class and its functions |
|
|
|
|
============================================================================== |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @package chamilo.library |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
class Database { |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
@ -1321,6 +1313,5 @@ class Database { |
|
|
|
|
public static function get_last_insert_id() { |
|
|
|
|
return mysql_insert_id(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//end class Database |