verifyUserPass($username, $password) == "valid") { $user_id = UserManager::get_user_id_from_username($username); $listOfCourses = UserManager::get_personal_session_course_list($user_id); $courses_id = "#"; foreach ($listOfCourses as $course){ $courses_id .= $course['code']."#"; } return $courses_id; } else { return get_lang('InvalidId'); } } public function get_course_title($username, $password, $course_code) { if($this->verifyUserPass($username, $password) == "valid") { $course_info = CourseManager::get_course_information($course_code); return $course_info['title']; } else return get_lang('InvalidId'); } } /* echo "aqui: "; $aqui = new WSCMCourses(); echo "
"; //print_r($aqui->unreadMessage("aluno", "e695f51fe3dd6b7cf2be3188a614f10f")); print_r($aqui->get_course_title("aluno", "c4ca4238a0b923820dcc509a6f75849b", "P0204")); echo ""; */