* @param boolean $include_sessions Whether to include courses from session or not
* @return array List of codes and db names
* @param boolean $adminGetsAllCourses If the user is platform admin, whether he gets all the courses or just his. Note: This does *not* include all sessions
* @return array List of codes and db name
* @author isaac flores paz
*/
public static function get_courses_list_by_user_id($user_id, $include_sessions = false)
public static function get_courses_list_by_user_id($user_id, $include_sessions = false, $adminGetsAllCourses = false)