Replaced Database::get_course_info() with api_get_course_info(),
Database :: get_user_personal_table() replaced with Database :: get_main_table(),
Database::get_course_list() moved to CourseManager,
Removing Database::get_last_insert_id() using Database::insert_id()
Moving Database::get_course_by_category() to CourseManager,
Replacing function get_statistic_table() with get_main_table() see BT#6220
Adding SYS_WEB_PATH constant + changing function get_statistic_table() with get_main_table()
Saving api_get_languages in a session in order to not hit the database many times.
Format code
Disabling tokens does not work correctly.
Improving local.inc.php in order to have extra_field values from the user once, because the _api_get_timezone() makes query to the DB to get the user timezone.
Setting more keys for the api_get_user_info
Adding course extra_fields and settings in order to avoid calls to the DB
The Thematic() constructor now needs a course array
Minor format code changes
Adding assetic settings (code disabled)
Do not use constants, functions or anything chamilo related in config files.
Adding assetic disabled parameters in order to load the style.css unique file
Improving performance: Function CourseManager::get_emails_of_tutors_to_course() was hitting the DB many times in orde to get teachers name like this:
"select * from user where user_id = X". The teacher list (status = 1) is now save in the course session using the api_get_course_info() function.
You can access the teacher list like $courseInfo['teacher_list'] array and $courseInfo['teacher_list_formatted'] (a string with links)
Minor - adding @todo
Moving default "dist" conf files from main/inc/conf to config
Removing database.mysqli.lib.php. Using doctrine as a data layer in the Database class
Fixing PHP warning
Reformat code + commenting mysql settings