当前位置: 首页>>代码示例>>PHP>>正文


PHP ExerciseLib::get_count_exam_hotpotatoes_results方法代码示例

本文整理汇总了PHP中ExerciseLib::get_count_exam_hotpotatoes_results方法的典型用法代码示例。如果您正苦于以下问题:PHP ExerciseLib::get_count_exam_hotpotatoes_results方法的具体用法?PHP ExerciseLib::get_count_exam_hotpotatoes_results怎么用?PHP ExerciseLib::get_count_exam_hotpotatoes_results使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ExerciseLib的用法示例。


在下文中一共展示了ExerciseLib::get_count_exam_hotpotatoes_results方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getWorkUserListData

     $count = getWorkUserListData($workId, api_get_course_id(), api_get_session_id(), api_get_group_id(), 0, $limit, null, null, true);
     break;
 case 'get_exercise_results':
     $exercise_id = $_REQUEST['exerciseId'];
     if (isset($_GET['filter_by_user']) && !empty($_GET['filter_by_user'])) {
         $filter_user = intval($_GET['filter_by_user']);
         $whereCondition .= " AND te.exe_user_id  = '{$filter_user}'";
     }
     if (!empty($whereCondition)) {
         $whereCondition = " AND {$whereCondition}";
     }
     $count = ExerciseLib::get_count_exam_results($exercise_id, $whereCondition);
     break;
 case 'get_hotpotatoes_exercise_results':
     $hotpot_path = $_REQUEST['path'];
     $count = ExerciseLib::get_count_exam_hotpotatoes_results($hotpot_path);
     break;
 case 'get_sessions_tracking':
     $keyword = isset($_REQUEST['keyword']) ? $_REQUEST['keyword'] : '';
     $description = '';
     $setting = api_get_setting('session.show_session_description');
     if ($setting === 'true') {
         $description = $keyword;
     }
     if (api_is_drh()) {
         $count = SessionManager::get_sessions_followed_by_drh(api_get_user_id(), null, null, true, false, false, null, $keyword, $description);
     } else {
         // Sessions for the coach
         $count = Tracking::get_sessions_coached_by_user(api_get_user_id(), null, null, true, $keyword, $description);
     }
     break;
开发者ID:jloguercio,项目名称:chamilo-lms,代码行数:31,代码来源:model.ajax.php

示例2: indexAction


//.........这里部分代码省略.........
             $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;
         case 'get_hotpotatoes_exercise_results':
             $hotpot_path = $request->get('path');
             //$_REQUEST['path'];
             $count = \ExerciseLib::get_count_exam_hotpotatoes_results($hotpot_path);
             break;
         case 'get_sessions':
             $list_type = $request->get('list_type');
             if ($list_type == 'simple' || empty($list_type)) {
                 $count = \SessionManager::get_sessions_admin(array('where' => $where_condition, 'extra' => $extra_fields), true);
             } else {
                 $count = \SessionManager::get_count_admin_complete(array('where' => $where_condition, 'extra' => $extra_fields));
             }
             break;
         case 'get_extra_fields':
             $obj = new \ExtraField($type);
             $count = $obj->get_count();
             break;
         case 'get_extra_field_options':
             $field_id = $request->get('field_id');
             $obj = new \ExtraFieldOption($type);
             $count = $obj->get_count_by_field_id($field_id);
             break;
         case 'get_timelines':
             $obj = new \Timeline();
             $count = $obj->get_count();
             break;
         case 'get_gradebooks':
             $obj = new \Gradebook();
             $count = $obj->get_count();
             break;
         case 'get_event_email_template':
             $obj = new \EventEmailTemplate();
             $count = $obj->get_count();
             break;
         case 'get_careers':
             $obj = new \Career();
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:67,代码来源:ModelAjaxController.php


注:本文中的ExerciseLib::get_count_exam_hotpotatoes_results方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。