當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CourseManager::get_count_user_list_from_course_code方法代碼示例

本文整理匯總了PHP中CourseManager::get_count_user_list_from_course_code方法的典型用法代碼示例。如果您正苦於以下問題:PHP CourseManager::get_count_user_list_from_course_code方法的具體用法?PHP CourseManager::get_count_user_list_from_course_code怎麽用?PHP CourseManager::get_count_user_list_from_course_code使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CourseManager的用法示例。


在下文中一共展示了CourseManager::get_count_user_list_from_course_code方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: api_get_path

     require_once api_get_path(SYS_CODE_PATH) . 'exercice/exercise.class.php';
     $exerciseId = isset($_REQUEST['exerciseId']) ? $_REQUEST['exerciseId'] : null;
     $exercise = new Exercise(api_get_course_int_id());
     $exercise->read($exerciseId, false);
     $count = $exercise->getQuestionCount();
     break;
 case 'get_group_reporting':
     $course_id = isset($_REQUEST['course_id']) ? $_REQUEST['course_id'] : null;
     $group_id = isset($_REQUEST['gidReq']) ? $_REQUEST['gidReq'] : null;
     $count = Tracking::get_group_reporting($course_id, $group_id, 'count');
     break;
 case 'get_user_course_report_resumed':
     $count = CourseManager::get_count_user_list_from_course_code(true, 'ruc');
     break;
 case 'get_user_course_report':
     $count = CourseManager::get_count_user_list_from_course_code(false);
     break;
 case 'get_course_exercise_medias':
     $course_id = api_get_course_int_id();
     $count = Question::get_count_course_medias($course_id);
     break;
 case 'get_user_skill_ranking':
     $skill = new Skill();
     $count = $skill->get_user_list_skill_ranking_count();
     break;
 case 'get_work_user_list_all':
     require_once api_get_path(SYS_CODE_PATH) . 'work/work.lib.php';
     $work_id = $_REQUEST['work_id'];
     $count = get_count_work($work_id);
     break;
 case 'get_work_user_list_others':
開發者ID:ilosada,項目名稱:chamilo-lms-icpna,代碼行數:31,代碼來源:model.ajax.php

示例2: array_column

         $courseCodeList = array_column($userCourses, 'code');
     }
     if (!empty($courseCodeList)) {
         $courseCodeList = array_unique($courseCodeList);
     }
     if (!empty($sessionIdList)) {
         $sessionIdList = array_unique($sessionIdList);
     }
     if (api_is_student_boss() && empty($userIdList)) {
         $count = 0;
         break;
     }
     if ($action == 'get_user_course_report') {
         $count = CourseManager::get_count_user_list_from_course_code(false, null, $courseCodeList, $userIdList, $sessionIdList);
     } else {
         $count = CourseManager::get_count_user_list_from_course_code(true, array('ruc'), $courseCodeList, $userIdList, $sessionIdList);
     }
     break;
 case 'get_course_exercise_medias':
     $course_id = api_get_course_int_id();
     $count = Question::get_count_course_medias($course_id);
     break;
 case 'get_user_skill_ranking':
     $skill = new Skill();
     $count = $skill->get_user_list_skill_ranking_count();
     break;
 case 'get_course_announcements':
     $count = AnnouncementManager::getAnnouncements(null, null, true);
     break;
 case 'get_work_teacher':
     require_once api_get_path(SYS_CODE_PATH) . 'work/work.lib.php';
開發者ID:jloguercio,項目名稱:chamilo-lms,代碼行數:31,代碼來源:model.ajax.php

示例3: indexAction


//.........這裏部分代碼省略.........
     if (!$sidx) {
         $sidx = 1;
     }
     //2. Selecting the count FIRST
     //@todo rework this
     switch ($action) {
         case 'get_questions':
             $categoryId = $request->get('categoryId');
             $exerciseId = $request->get('exerciseId');
             //$courseId = null; //$request->get('courseId');
             $courseId = $request->get('courseId');
             // Question manager can view all questions
             if (api_is_question_manager()) {
                 $courseId = null;
             }
             $count = \Question::getQuestions($app, $categoryId, $exerciseId, $courseId, array('where' => $where_condition, 'extra' => $extra_fields, 'question' => $questionFields), true);
             break;
         case 'get_user_list_plugin_widescale':
             $count = \UserManager::get_user_data(null, null, null, null, true);
             break;
         case 'get_question_list':
             require_once api_get_path(SYS_CODE_PATH) . 'exercice/exercise.class.php';
             $exerciseId = $request->get('exerciseId');
             $exercise = new \Exercise(api_get_course_int_id());
             $exercise->read($exerciseId);
             $count = $exercise->selectNbrQuestions();
             break;
         case 'get_group_reporting':
             $course_id = $request->get('course_id');
             $group_id = $request->get('gidReq');
             $count = \Tracking::get_group_reporting($course_id, $group_id, 'count');
             break;
         case 'get_user_course_report_resumed':
             $count = \CourseManager::get_count_user_list_from_course_code(true, 'ruc');
             break;
         case 'get_user_course_report':
             $count = \CourseManager::get_count_user_list_from_course_code(false);
             break;
         case 'get_course_exercise_medias':
             $course_id = api_get_course_int_id();
             $count = \Question::get_count_course_medias($course_id);
             break;
         case 'get_user_skill_ranking':
             $skill = new \Skill();
             $count = $skill->get_user_list_skill_ranking_count();
             break;
         case 'get_work_user_list':
             require_once api_get_path(SYS_CODE_PATH) . 'work/work.lib.php';
             $work_id = $request->get('work_id');
             //$_REQUEST['work_id'];
             $count = get_count_work($work_id);
             break;
         case 'get_exercise_results':
             $exercise_id = $request->get('exerciseId');
             //$_REQUEST['exerciseId'];
             $filter_by_user = $request->get('filter_by_user');
             if (isset($filter_by_user) && !empty($filter_by_user)) {
                 $filter_user = intval($filter_by_user);
                 if ($where_condition == "") {
                     $where_condition .= " te.exe_user_id  = '{$filter_user}'";
                 } else {
                     $where_condition .= " AND te.exe_user_id  = '{$filter_user}'";
                 }
             }
             $count = \ExerciseLib::get_count_exam_results($exercise_id, $where_condition);
             break;
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:67,代碼來源:ModelAjaxController.php


注:本文中的CourseManager::get_count_user_list_from_course_code方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。