public function invokeService() { $action = required_param('action', PARAM_RAW_TRIMMED); switch ($action) { case 'login': CliniqueServices::__login(); break; case 'logout': require_once 'clinique_logout.php'; Logout::__logout(); break; case 'change_password': CliniqueServices::__change_password(); break; case 'forgot_password': CliniqueServices::__forgot_password(); break; case 'players': CliniqueServices::__players_bar(); break; case 'badges': CliniqueServices::__badges_bag(); break; case 'progress': CliniqueServices::__progress_bar(); break; case 'create_favorite': CliniqueServices::__createfavorites(); break; case 'favorite': CliniqueServices::__favorites(); break; case 'by_user_searchfield': CliniqueServices::__by_user_searchfield(); break; case 'by_course_searchfield': CliniqueServices::__by_course_searchfield(); break; case 'reports': CliniqueServices::__reports(); break; case 'cronreport': CliniqueServices::__cronreport(); break; case 'export': CliniqueServices::__export(); break; case 'csv': CliniqueServices::__csv(); break; case 'remove_favorite': CliniqueServices::__remove(); break; case 'widget': CliniqueServices::__widget(); break; case 'self_registration': CliniqueServices::__selfregistarion(); break; case 'cascade_dropdown': CliniqueServices::__cascadedropdown(); break; } }
public static function invokeService() { $action = required_param('action', PARAM_RAW_TRIMMED); switch ($action) { case 'login': CliniqueServices::__login(); break; case 'logout': require_once 'clinique_logout.php'; Logout::__logout(); break; case 'change_password': self::__verify_token(); CliniqueServices::__change_password(); break; case 'forgot_password': CliniqueServices::__forgot_password(); break; case 'players': CliniqueServices::__players_bar(); break; case 'badges': CliniqueServices::__badges_bag(); break; case 'progress': CliniqueServices::__progress_bar(); break; case 'create_favorite': CliniqueServices::__createfavorites(); break; case 'favorite': CliniqueServices::__favorites(); break; case 'by_user_searchfield': CliniqueServices::__by_user_searchfield(); break; case 'by_course_searchfield': CliniqueServices::__by_course_searchfield(); break; case 'reports': CliniqueServices::__reports(); break; case 'reports_search': CliniqueServices::__report_search(); break; case 'cronreport': CliniqueServices::__cronreport(); break; case 'export': CliniqueServices::__export(); break; case 'csv': CliniqueServices::__csv(); break; case 'remove_favorite': CliniqueServices::__remove(); break; case 'widget': CliniqueServices::__widget(); break; case 'self_registration': CliniqueServices::__selfregistarion(); break; case 'cascade_dropdown': CliniqueServices::__cascadedropdown(); break; case 'get_course_pdf_bookmarks': self::__verify_token(); CliniqueServices::__get_course_pdf_bookmarks(); break; case 'insert_course_pdf_bookmark': self::__verify_token(); CliniqueServices::__insert_course_pdf_bookmark(); break; case 'delete_course_pdf_bookmark': self::__verify_token(); CliniqueServices::__delete_course_pdf_bookmark(); break; case 'get_course_resource_comment': self::__verify_token(); CliniqueServices::__get_course_resource_comment(); break; case 'get_course_resource_comments': self::__verify_token(); CliniqueServices::__get_course_resource_comments(); break; case 'get_course_resource_comments_export': self::__verify_token(); CliniqueServices::__get_course_resource_comments_export(); break; case 'insert_replace_course_resource_comment': self::__verify_token(); CliniqueServices::__insert_replace_course_resource_comment(); break; case 'complete_user_data': self::__verify_token(); CliniqueServices::__get_complete_user_data(); break; case 'scormpackage': CliniqueServices::__ScormPackage(); break; } }