public/main/tracking/course_log_tools.php
Variable "from_myspace" is not in valid camel caps format Open
Open
$from_myspace = false;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$list = new LearnpathList(null, ['real_id' => $course->getId(), 'code' => $course->getCode()], $session_id);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session = api_get_session_entity($session_id);
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
$export_csv = isset($_GET['export']) && 'csv' == $_GET['export'] ? true : false;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code = api_get_course_id();
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id = api_get_course_int_id();
- Exclude checks
Variable "quiz_avg_score" is not in valid camel caps format Open
Open
$quiz_avg_score += $avg_student_score;
- Exclude checks
Variable "count_number_of_forums_by_course" is not in valid camel caps format Open
Open
$count_number_of_forums_by_course = Tracking::count_number_of_forums_by_course(
- Exclude checks
Variable "student_ids" is not in valid camel caps format Open
Open
$student_ids = array_keys($a_students);
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
Open
foreach ($a_students as $student_id => $student) {
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
$lp_avg_progress += Tracking::get_avg_student_progress(
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
$lp_avg_progress = '0%';
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$course_path_params = '&cid='.$course_id.'&sid='.$session_id;
- Exclude checks
Variable "quiz_avg_score" is not in valid camel caps format Open
Open
$quiz_avg_score = round(($quiz_avg_score / $studentCount), 2).'%';
- Exclude checks
Variable "quiz_avg_score" is not in valid camel caps format Open
Open
$temp = [$exercise->getTitle(), $quiz_avg_score];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = api_get_session_id();
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
echo '<tr><td>'.$lp['lp_name'].'</td><td align="right">'.$lp_avg_progress.'</td></tr>';
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "a_students" is not in valid camel caps format Open
Open
$a_students = CourseManager::get_student_list_from_course_code(
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
Open
if (count($flat_list) > 0) {
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
[$lp_id],
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
if (is_null($lp_avg_progress)) {
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
$lp_avg_progress = round($lp_avg_progress, 1).'%';
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "current_course_tool" is not in valid camel caps format Open
Open
$current_course_tool = TOOL_TRACKING;
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content = [];
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
$lp_avg_progress = null;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id
- Exclude checks
Variable "from_myspace" is not in valid camel caps format Open
Open
$from_myspace = true;
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = ['', ''];
- Exclude checks
Variable "course_path_params" is not in valid camel caps format Open
Open
$course_path_params = '&cid='.$course_id.'&sid='.$session_id;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_path_params = '&cid='.$course_id.'&sid='.$session_id;
- Exclude checks
Variable "avg_student_score" is not in valid camel caps format Open
Open
$avg_student_score = Tracking::get_avg_student_exercise_score(
- Exclude checks
Variable "avg_student_score" is not in valid camel caps format Open
Open
$quiz_avg_score += $avg_student_score;
- Exclude checks
Variable "a_students" is not in valid camel caps format Open
Open
$student_ids = array_keys($a_students);
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
$lp_avg_progress = $lp_avg_progress / $studentCount;
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
$lp_avg_progress = $lp_avg_progress / $studentCount;
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
$lp_avg_progress = round($lp_avg_progress, 1).'%';
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "student_ids" is not in valid camel caps format Open
Open
foreach ($student_ids as $student_id) {
- Exclude checks
Variable "quiz_avg_score" is not in valid camel caps format Open
Open
$quiz_avg_score = round(($quiz_avg_score / $studentCount), 2).'%';
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (!empty($session_id)) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (empty($session_id)) {
- Exclude checks
Variable "quiz_avg_score" is not in valid camel caps format Open
Open
$quiz_avg_score = 0;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code,
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
Open
foreach ($flat_list as $lp_id => $lp) {
- Exclude checks
Variable "course_path_params" is not in valid camel caps format Open
Open
$url = api_get_path(WEB_CODE_PATH).'exercise/overview.php?exerciseId='.$exerciseId.$course_path_params;
- Exclude checks
Variable "a_students" is not in valid camel caps format Open
Open
$a_students = CourseManager::get_student_list_from_course_code(
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
Open
foreach ($flat_list as $lp_id => $lp) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session = api_get_session_entity($session_id);
- Exclude checks
Variable "quiz_avg_score" is not in valid camel caps format Open
Open
echo '</td><td align="right">'.$quiz_avg_score.'</td></tr>';
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = 'session_my_space';
- Exclude checks
Variable "is_allowedToTrack" is not in valid camel caps format Open
Open
$is_allowedToTrack = Tracking::isAllowToTrack($session_id);
- Exclude checks
Variable "is_allowedToTrack" is not in valid camel caps format Open
Open
if (!$is_allowedToTrack) {
- Exclude checks
Variable "student_ids" is not in valid camel caps format Open
Open
$studentCount = count($student_ids);
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
$lp_avg_progress = 0;
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
Open
$student_id,
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
Open
foreach ($student_ids as $student_id) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$is_allowedToTrack = Tracking::isAllowToTrack($session_id);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
Session::write('id_session', $session_id);
- Exclude checks
Variable "flat_list" is not in valid camel caps format Open
Open
$flat_list = $list->get_flat_list();
- Exclude checks
Variable "a_students" is not in valid camel caps format Open
Open
foreach ($a_students as $student_id => $student) {
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "student_id" is not in valid camel caps format Open
Open
$student_id,
- Exclude checks
Variable "student_ids" is not in valid camel caps format Open
Open
$filterByUsers = $student_ids;
- Exclude checks
Variable "a_students" is not in valid camel caps format Open
Open
$nbStudents = count($a_students);
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "lp_avg_progress" is not in valid camel caps format Open
Open
$temp = [$lp['lp_name'], $lp_avg_progress];
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = ['', ''];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id,
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = [get_lang('Forum')];
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "links_most_visited" is not in valid camel caps format Open
Open
if (!empty($links_most_visited)) {
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = [get_lang('Posts number'), $count_number_of_posts_by_course];
- Exclude checks
Variable "count_number_of_posts_by_course" is not in valid camel caps format Open
Open
echo '<tr><td>'.get_lang('Posts number').'</td><td align="right">'.$count_number_of_posts_by_course.'</td></tr>';
- Exclude checks
Variable "chat_connections_during_last_x_days_by_course" is not in valid camel caps format Open
Open
echo '</td><td align="right">'.$chat_connections_during_last_x_days_by_course.'</td></tr>';
- Exclude checks
Variable "tools_most_used" is not in valid camel caps format Open
Open
$tools_most_used = Tracking::get_tools_most_used_by_course(
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code,
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id,
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "links_most_visited" is not in valid camel caps format Open
Open
foreach ($links_most_visited as $row) {
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "count_number_of_forums_by_course" is not in valid camel caps format Open
Open
$csv_content[] = [get_lang('Forums Number'), $count_number_of_forums_by_course];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id,
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = [get_lang('Chat', ''), ''];
- Exclude checks
Variable "course_path_params" is not in valid camel caps format Open
Open
$viewLink = api_get_path(WEB_PATH).'resources/document/'.$course->getResourceNode()->getId().'/show?'.$course_path_params;
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id,
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id,
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "tools_most_used" is not in valid camel caps format Open
Open
foreach ($tools_most_used as $row) {
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = [get_lang('Forums Number'), $count_number_of_forums_by_course];
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code,
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "count_number_of_posts_by_course" is not in valid camel caps format Open
Open
$csv_content[] = [get_lang('Posts number'), $count_number_of_posts_by_course];
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id,
- Exclude checks
Variable "documents_most_downloaded" is not in valid camel caps format Open
Open
foreach ($documents_most_downloaded as $row) {
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code,
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = ['', ''];
- Exclude checks
Variable "count_number_of_threads_by_course" is not in valid camel caps format Open
Open
$csv_content[] = [get_lang('Threads number'), $count_number_of_threads_by_course];
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = [
- Exclude checks
Variable "documents_most_downloaded" is not in valid camel caps format Open
Open
$documents_most_downloaded = Tracking::get_documents_most_downloaded_by_course(
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "count_number_of_threads_by_course" is not in valid camel caps format Open
Open
$count_number_of_threads_by_course = Tracking::count_number_of_threads_by_course(
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id,
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id,
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id
- Exclude checks
Variable "tools_most_used" is not in valid camel caps format Open
Open
if (!empty($tools_most_used)) {
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "count_number_of_posts_by_course" is not in valid camel caps format Open
Open
$count_number_of_posts_by_course = Tracking::count_number_of_posts_by_course(
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = [get_lang('Threads number'), $count_number_of_threads_by_course];
- Exclude checks
Variable "count_number_of_threads_by_course" is not in valid camel caps format Open
Open
echo '<tr><td>'.get_lang('Threads number').'</td><td align="right">'.$count_number_of_threads_by_course.'</td></tr>';
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "count_number_of_forums_by_course" is not in valid camel caps format Open
Open
echo '<tr><td>'.get_lang('Forums Number').'</td><td align="right">'.$count_number_of_forums_by_course.'</td></tr>';
- Exclude checks
Variable "chat_connections_during_last_x_days_by_course" is not in valid camel caps format Open
Open
$chat_connections_during_last_x_days_by_course = Tracking::chat_connections_during_last_x_days_by_course(
- Exclude checks
Variable "chat_connections_during_last_x_days_by_course" is not in valid camel caps format Open
Open
$chat_connections_during_last_x_days_by_course,
- Exclude checks
Variable "export_csv" is not in valid camel caps format Open
Open
if ($export_csv) {
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = ['', ''];
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
$csv_content[] = $temp;
- Exclude checks
Variable "documents_most_downloaded" is not in valid camel caps format Open
Open
if (!empty($documents_most_downloaded)) {
- Exclude checks
Variable "links_most_visited" is not in valid camel caps format Open
Open
$links_most_visited = Tracking::get_links_most_visited_by_course(
- Exclude checks
Variable "csv_content" is not in valid camel caps format Open
Open
Export:: arrayToCsv($csv_content, 'reporting_course_tools');
- Exclude checks
Expected 0 spaces before closing bracket; newline found Open
Open
Display::getMdiIcon(ToolIcon::QUIZ, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Tests score')
- Exclude checks
Expected 0 spaces before closing bracket; newline found Open
Open
Display::getMdiIcon(ObjectIcon::COURSE_PROGRESS, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Progress in courses')
- Exclude checks
Expected 0 spaces before closing bracket; newline found Open
Open
Display::getMdiIcon(ToolIcon::TRACKING, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Tools most used')
- Exclude checks
Expected 0 spaces before closing bracket; newline found Open
Open
Display::getMdiIcon(ToolIcon::LINK, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Links most visited')
- Exclude checks
Expected 0 spaces before closing bracket; newline found Open
Open
Display::getMdiIcon(ToolIcon::DOCUMENT, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Documents most downloaded')
- Exclude checks