public/main/tracking/course_session_report.php
Variable "session_list" is not in valid camel caps format Open
Open
if (0 == count($session_list)) {
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
Open
foreach ($course_list as $current_course) {
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$attempt_result[$stats['exe_user_id']]['attempts']++;
- Exclude checks
Variable "total_average_score" is not in valid camel caps format Open
Open
$total_average_score = 0;
- Exclude checks
Variable "s_css_class" is not in valid camel caps format Open
Open
$s_css_class = 'row_even';
- Exclude checks
Variable "is_allowedToTrack" is not in valid camel caps format Open
Open
if (!$is_allowedToTrack) {
- Exclude checks
Variable "sesion_item" is not in valid camel caps format Open
Open
foreach ($session_list as $sesion_item) {
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
$exercise_list = Event::get_all_exercises_from_lp($lp_id);
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$main_result[$current_course['code']] = $attempt_result;
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= '<th>'.get_lang('Last connexion date').'</th></tr>';
- Exclude checks
Variable "main_result" is not in valid camel caps format Open
Open
if (isset($main_result[$current_course['code']][$user['user_id']])) {
- Exclude checks
Variable "main_result" is not in valid camel caps format Open
Open
$user_info_stat = $main_result[$current_course['code']][$user['user_id']];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = intval($_REQUEST['session_id']);
- Exclude checks
Variable "main_result" is not in valid camel caps format Open
Open
$main_result = [];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$list = new LearnpathList('', $course_info, $session_id);
- Exclude checks
Variable "main_result" is not in valid camel caps format Open
Open
$main_result[$current_course['code']] = $attempt_result;
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result = '';
- Exclude checks
Variable "filter_score" is not in valid camel caps format Open
Open
$filter_score = 70;
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
Open
$course_list = SessionManager::get_course_list_by_session_id($session_id);
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$attempt_result = [];
- Exclude checks
Variable "lp_list" is not in valid camel caps format Open
Open
foreach ($lp_list as $lp_id => $lp) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id
- Exclude checks
Variable "export_to_xls" is not in valid camel caps format Open
Open
$export_to_xls = true;
- Exclude checks
Variable "export_to_xls" is not in valid camel caps format Open
Open
if (!$export_to_xls) {
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
foreach ($lp_list as $lp_id => $lp) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (empty($session_id)) {
- Exclude checks
Variable "_course" is not in valid camel caps format Open
Open
$_course = $course_info;
- Exclude checks
Variable "exercise_list" is not in valid camel caps format Open
Open
$exercise_list = Event::get_all_exercises_from_lp($lp_id);
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= '<th>'.get_lang('Average score').' %</th>';
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= $user['firstname'].' '.$user['lastname'];
- Exclude checks
Variable "my_session_list" is not in valid camel caps format Open
Open
$session_id = key($my_session_list);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_info = api_get_course_info($current_course['code']);
- Exclude checks
Variable "exercise_stats" is not in valid camel caps format Open
Open
foreach ($exercise_stats as $stats) {
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
$user_info_stat = $main_result[$current_course['code']][$user['user_id']];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$form->setDefaults(['session_id' => $session_id]);
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
$course_info = api_get_course_info($current_course['code']);
- Exclude checks
Variable "exercise_stats" is not in valid camel caps format Open
Open
$exercise_stats = Event::get_all_exercise_event_from_lp(
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= '<table class="table table-hover table-striped data_table">';
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= '<tr><th>'.get_lang('User').'</th>';
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
Open
foreach ($course_list as $item) {
- Exclude checks
Variable "s_css_class" is not in valid camel caps format Open
Open
$html_result .= "<tr class='$s_css_class'>
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = 'session_my_space';
- Exclude checks
Variable "session_list" is not in valid camel caps format Open
Open
foreach ($session_list as $sesion_item) {
- Exclude checks
Variable "filter_score" is not in valid camel caps format Open
Open
$filter_score = intval($_REQUEST['score']);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$course_list = SessionManager::get_course_list_by_session_id($session_id);
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
$main_result[$current_course['code']] = $attempt_result;
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
if (isset($main_result[$current_course['code']][$user['user_id']])) {
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
foreach ($course_list as $current_course) {
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$list = new LearnpathList('', $course_info, $session_id);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_info['real_id'],
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= "<td>";
- Exclude checks
Variable "user_info_stat" is not in valid camel caps format Open
Open
$user_info_stat = $main_result[$current_course['code']][$user['user_id']];
- Exclude checks
Variable "my_session_list" is not in valid camel caps format Open
Open
$my_session_list[0] = get_lang('none');
- Exclude checks
Variable "my_session_list" is not in valid camel caps format Open
Open
$form->addSelect('session_id', get_lang('Course sessions'), $my_session_list);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = 0;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = key($my_session_list);
- Exclude checks
Variable "course_average" is not in valid camel caps format Open
Open
$course_average = $course_average_counter = [];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = isset($_GET['session_id']) ? intval($_GET['session_id']) : null;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$is_allowedToTrack = Tracking::isAllowToTrack($session_id);
- Exclude checks
Variable "my_session_list" is not in valid camel caps format Open
Open
$my_session_list = [];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$users = SessionManager::get_users_by_session($session_id);
- Exclude checks
Variable "attempt_result" is not in valid camel caps format Open
Open
$attempt_result[$stats['exe_user_id']]['result'] += $stats['score'] / $stats['max_score'];
- Exclude checks
Variable "total_student" is not in valid camel caps format Open
Open
$total_student = 0;
- Exclude checks
Variable "total_result_by_user" is not in valid camel caps format Open
Open
$total_result_by_user = 0;
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
Open
foreach ($course_list as $current_course) {
- Exclude checks
Variable "is_allowedToTrack" is not in valid camel caps format Open
Open
$is_allowedToTrack = Tracking::isAllowToTrack($session_id);
- Exclude checks
Variable "session_list" is not in valid camel caps format Open
Open
$session_list = SessionManager::get_sessions_list([], ['title']);
- Exclude checks
Variable "sesion_item" is not in valid camel caps format Open
Open
$my_session_list[$sesion_item['id']] = $sesion_item['title'];
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$_course = $course_info;
- Exclude checks
Variable "lp_list" is not in valid camel caps format Open
Open
$lp_list = $list->get_flat_list();
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= "</td>";
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
foreach ($course_list as $current_course) {
- Exclude checks
Variable "total_course" is not in valid camel caps format Open
Open
$total_course = 0;
- Exclude checks
Variable "my_session_list" is not in valid camel caps format Open
Open
$my_session_list[$sesion_item['id']] = $sesion_item['title'];
- Exclude checks
Variable "export_to_xls" is not in valid camel caps format Open
Open
$export_to_xls = false;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = 1;
- Exclude checks
Variable "sesion_item" is not in valid camel caps format Open
Open
$my_session_list[$sesion_item['id']] = $sesion_item['title'];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (empty($session_id)) {
- Exclude checks
Variable "course_average_counter" is not in valid camel caps format Open
Open
$course_average = $course_average_counter = [];
- Exclude checks
Variable "total_average_score_count" is not in valid camel caps format Open
Open
$total_average_score_count = 0;
- Exclude checks
Variable "s_css_class" is not in valid camel caps format Open
Open
$s_css_class = 'row_odd';
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= "<tr class='$s_css_class'>
- Exclude checks
Variable "exercise_list" is not in valid camel caps format Open
Open
foreach ($exercise_list as $exercise) {
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= '<th>'.$item['title'].'<br /> '.get_lang('Average score').' %</th>';
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
$course_average[$current_course['code']] += $total_course;
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= $result;
- Exclude checks
Variable "string_date" is not in valid camel caps format Open
Open
$html_result .= "<td>$total_student</td><td>$string_date</td></tr>";
- Exclude checks
Variable "average_per_course" is not in valid camel caps format Open
Open
$total_average = $total_average + $average_per_course;
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= "<td>-</td>";
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
if (!isset($course_average[$current_course['code']])) {
- Exclude checks
Variable "course_average" is not in valid camel caps format Open
Open
$course_average[$current_course['code']] = 0;
- Exclude checks
Variable "course_average" is not in valid camel caps format Open
Open
$course_average[$current_course['code']] += $total_course;
- Exclude checks
Variable "total_student" is not in valid camel caps format Open
Open
$html_result .= "<td>$total_student</td><td>$string_date</td></tr>";
- Exclude checks
Variable "total_average" is not in valid camel caps format Open
Open
$total_average = 0;
- Exclude checks
Variable "course_average" is not in valid camel caps format Open
Open
$course_average[$course_item['code']] / ($course_average_counter[$course_item['code']] * 100) * 100,
- Exclude checks
Variable "average_per_course" is not in valid camel caps format Open
Open
$average_per_course = 0;
- Exclude checks
Variable "total_average_score_count" is not in valid camel caps format Open
Open
$total_average = round($total_average_score / ($total_average_score_count * 100) * 100, 2);
- Exclude checks
Variable "total_average" is not in valid camel caps format Open
Open
$total_average = $total_average + $average_per_course;
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= '<td>'.$total_average.'</td>';
- Exclude checks
Variable "total_average" is not in valid camel caps format Open
Open
$html_result .= '<td>'.$total_average.'</td>';
- Exclude checks
Variable "total_result_by_user" is not in valid camel caps format Open
Open
$total_result_by_user += $result;
- Exclude checks
Variable "total_student" is not in valid camel caps format Open
Open
$total_student = '-';
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
$course_average[$course_item['code']] / ($course_average_counter[$course_item['code']] * 100) * 100,
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
$course_average_counter[$current_course['code']]++;
- Exclude checks
Variable "export_to_xls" is not in valid camel caps format Open
Open
if (!$export_to_xls) {
- Exclude checks
Variable "user_info_stat" is not in valid camel caps format Open
Open
if (!empty($user_info_stat['result']) && !empty($user_info_stat['attempts'])) {
- Exclude checks
Variable "user_info_stat" is not in valid camel caps format Open
Open
$user_info_stat['result'] / $user_info_stat['attempts'] * 100,
- Exclude checks
Variable "course_average" is not in valid camel caps format Open
Open
if (!isset($course_average[$current_course['code']])) {
- Exclude checks
Variable "string_date" is not in valid camel caps format Open
Open
$string_date = Tracking::get_last_connection_date($user['user_id'], true);
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
$course_average[$course_item['code']] / ($course_average_counter[$course_item['code']] * 100) * 100,
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= "<td>$average_per_course</td>";
- Exclude checks
Variable "user_info_stat" is not in valid camel caps format Open
Open
$result = $result.' ('.$user_info_stat['attempts'].' '.get_lang('Attempts').')';
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= "<tr><th>".get_lang('Average score')."</th>";
- Exclude checks
Variable "average_per_course" is not in valid camel caps format Open
Open
if (!empty($average_per_course)) {
- Exclude checks
Variable "course_average_counter" is not in valid camel caps format Open
Open
$course_average[$course_item['code']] / ($course_average_counter[$course_item['code']] * 100) * 100,
- Exclude checks
Variable "total_average" is not in valid camel caps format Open
Open
$total_average = '-';
- Exclude checks
Variable "course_average_counter" is not in valid camel caps format Open
Open
if (!isset($course_average_counter[$current_course['code']])) {
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
foreach ($course_list as $course_item) {
- Exclude checks
Variable "average_per_course" is not in valid camel caps format Open
Open
$average_per_course = round(
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= '</table>';
- Exclude checks
Variable "total_course" is not in valid camel caps format Open
Open
$course_average[$current_course['code']] += $total_course;
- Exclude checks
Variable "course_average_counter" is not in valid camel caps format Open
Open
$course_average_counter[$current_course['code']] = 0;
- Exclude checks
Variable "total_student" is not in valid camel caps format Open
Open
$total_student = $total_result_by_user / $counter;
- Exclude checks
Variable "course_average_counter" is not in valid camel caps format Open
Open
if (!empty($course_average_counter[$course_item['code']])) {
- Exclude checks
Variable "course_average_counter" is not in valid camel caps format Open
Open
$course_average_counter[$current_course['code']]++;
- Exclude checks
Variable "average_per_course" is not in valid camel caps format Open
Open
$html_result .= "<td>$average_per_course</td>";
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= "</tr>";
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
$course_average_counter[$current_course['code']] = 0;
- Exclude checks
Variable "total_result_by_user" is not in valid camel caps format Open
Open
$total_student = $total_result_by_user / $counter;
- Exclude checks
Variable "total_average_score_count" is not in valid camel caps format Open
Open
$total_average_score_count++;
- Exclude checks
Variable "total_average" is not in valid camel caps format Open
Open
$total_average = $total_average + $average_per_course;
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
echo $html_result;
- Exclude checks
Variable "user_info_stat" is not in valid camel caps format Open
Open
if (!empty($user_info_stat['result']) && !empty($user_info_stat['attempts'])) {
- Exclude checks
Variable "user_info_stat" is not in valid camel caps format Open
Open
$user_info_stat['result'] / $user_info_stat['attempts'] * 100,
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= "<td>$total_student</td><td>$string_date</td></tr>";
- Exclude checks
Variable "course_list" is not in valid camel caps format Open
Open
foreach ($course_list as $course_item) {
- Exclude checks
Variable "course_item" is not in valid camel caps format Open
Open
if (!empty($course_average_counter[$course_item['code']])) {
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
$course_average[$current_course['code']] = 0;
- Exclude checks
Variable "current_course" is not in valid camel caps format Open
Open
if (!isset($course_average_counter[$current_course['code']])) {
- Exclude checks
Variable "total_student" is not in valid camel caps format Open
Open
$total_average_score += $total_student;
- Exclude checks
Variable "total_average_score" is not in valid camel caps format Open
Open
$total_average = round($total_average_score / ($total_average_score_count * 100) * 100, 2);
- Exclude checks
Variable "total_average" is not in valid camel caps format Open
Open
$total_average = round($total_average_score / ($total_average_score_count * 100) * 100, 2);
- Exclude checks
Variable "total_course" is not in valid camel caps format Open
Open
$total_course += $result;
- Exclude checks
Variable "html_result" is not in valid camel caps format Open
Open
$html_result .= "</td>";
- Exclude checks
Variable "total_average_score" is not in valid camel caps format Open
Open
$total_average_score += $total_student;
- Exclude checks
Variable "total_average_score_count" is not in valid camel caps format Open
Open
if (!empty($total_average_score_count)) {
- Exclude checks