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


PHP Tracking::get_average_test_scorm_and_lp方法代码示例

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


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

示例1: get_lang

 $table->set_header(6, get_lang('Student_publication'), false);
 $table->set_header(7, get_lang('Messages'), false);
 $table->set_header(8, get_lang('FirstLogin'), false, 'align="center"');
 $table->set_header(9, get_lang('LatestLogin'), false, 'align="center"');
 $table->set_header(10, get_lang('Details'), false);
 if ($export_csv) {
     $csv_content[] = array();
 }
 $all_datas = array();
 $course_code = $_course['id'];
 foreach ($a_students as $student_id => $student) {
     $student_datas = UserManager::get_user_info_by_id($student_id);
     $avg_time_spent = $avg_student_score = $avg_student_progress = $total_assignments = $total_messages = 0;
     $nb_courses_student = 0;
     $avg_time_spent = Tracking::get_time_spent_on_the_course($student_id, $course_code);
     $avg_student_score = Tracking::get_average_test_scorm_and_lp($student_id, $course_code);
     $avg_student_progress = Tracking::get_avg_student_progress($student_id, $course_code);
     $total_assignments = Tracking::count_student_assignments($student_id, $course_code);
     $total_messages = Tracking::count_student_messages($student_id, $course_code);
     $row = array();
     $row[] = $student_datas['official_code'];
     $row[] = $student_datas['lastname'];
     $row[] = $student_datas['firstname'];
     $row[] = api_time_to_hms($avg_time_spent);
     if (is_null($avg_student_score)) {
         $avg_student_score = 0;
     }
     if (is_null($avg_student_progress)) {
         $avg_student_progress = 0;
     }
     $row[] = $avg_student_progress . ' %';
开发者ID:RusticiSoftware,项目名称:SCORMCloud_DokeosMod,代码行数:31,代码来源:courseLog.php

示例2: intval

     $a_courses[$row['course_code']] = $row['course_code'];
 }
 // get the list of sessions where the user is subscribed as student
 $sql = 'SELECT DISTINCT course_code FROM ' . Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER) . ' WHERE id_user=' . intval($a_infosUser['user_id']);
 $rs = api_sql_query($sql, __FILE__, __LINE__);
 while ($row = Database::fetch_array($rs)) {
     $a_courses[$row['course_code']] = $row['course_code'];
 }
 $course_id = Security::remove_XSS($_GET['course']);
 if (!CourseManager::is_user_subscribed_in_course($a_infosUser['user_id'], $course_id, true)) {
     unset($a_courses[$key]);
 } else {
     $nb_courses++;
     $avg_student_progress = Tracking::get_avg_student_progress($a_infosUser['user_id'], $course_id);
     //the score inside the Reporting table
     $avg_student_score = Tracking::get_average_test_scorm_and_lp($a_infosUser['user_id'], $course_id);
 }
 $avg_student_progress = round($avg_student_progress, 2);
 $avg_student_score = round($avg_student_score, 2);
 $first_connection_date = Tracking::get_first_connection_date($a_infosUser['user_id']);
 if ($first_connection_date == '') {
     $first_connection_date = get_lang('NoConnexion');
 }
 $last_connection_date = Tracking::get_last_connection_date($a_infosUser['user_id'], true);
 if ($last_connection_date == '') {
     $last_connection_date = get_lang('NoConnexion');
 }
 $time_spent_on_the_course = api_time_to_hms(Tracking::get_time_spent_on_the_course($a_infosUser['user_id'], $course_id));
 // cvs informations
 $csv_content[] = array(get_lang('Informations'));
 $csv_content[] = array(get_lang('Name'), get_lang('Email'), get_lang('Tel'));
开发者ID:RusticiSoftware,项目名称:SCORMCloud_DokeosMod,代码行数:31,代码来源:myStudents.php


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