chamilo/chamilo-lms

View on GitHub
public/main/session/index.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "user_course_list" is not in valid camel caps format
Open

$user_course_list = [];

Variable "my_session_list" is not in valid camel caps format
Open

$my_session_list = [];

Variable "last_date" is not in valid camel caps format
Open

        $last_date = Tracking::get_last_connection_date_on_the_course(

Variable "session_list" is not in valid camel caps format
Open

foreach ($session_list as $item) {

Variable "session_id" is not in valid camel caps format
Open

if (empty($session_id)) {

Variable "my_score" is not in valid camel caps format
Open

                        $my_score,

Variable "session_id" is not in valid camel caps format
Open

                        api_get_path(WEB_CODE_PATH)."exercise/result.php?cid=$courseId&id={$result['exe_id']}&sid=$session_id&show_headers=1",

Variable "my_real_array" is not in valid camel caps format
Open

                    $my_real_array[] = [

Variable "extra_params" is not in valid camel caps format
Open

$extra_params['sortname'] = 'date';

Variable "session_id" is not in valid camel caps format
Open

$url_by_course = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_by_course&session_id='.$session_id.'&course_id='.$course_id;

Variable "url_week" is not in valid camel caps format
Open

$url_week = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_by_week&session_id='.$session_id.'&course_id='.$course_id;

Variable "session_id" is not in valid camel caps format
Open

$url_week = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_by_week&session_id='.$session_id.'&course_id='.$course_id;

Variable "column_exercise_model" is not in valid camel caps format
Open

    $column_exercise_model = [

Variable "session_id" is not in valid camel caps format
Open

$session_id = isset($_GET['session_id']) ? (int) $_GET['session_id'] : 0;

Variable "lp_count" is not in valid camel caps format
Open

        $lp_count = 0;

Variable "user_list" is not in valid camel caps format
Open

    $user_list = SessionManager::get_users_by_session($session_id);

Variable "my_real_array" is not in valid camel caps format
Open

$my_real_array = $new_exercises = [];

Variable "url_by_course" is not in valid camel caps format
Open

$url_by_course = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_by_course&session_id='.$session_id.'&course_id='.$course_id;

Variable "extra_params_course" is not in valid camel caps format
Open

$extra_params_course['autowidth'] = 'true'; //use the width of the parent

Variable "course_id" is not in valid camel caps format
Open

$course_id = isset($_GET['course_id']) ? (int) $_GET['course_id'] : null;

Variable "course_data" is not in valid camel caps format
Open

                    $course_data['title'],

Variable "lp_list" is not in valid camel caps format
Open

            foreach ($lp_list as $valLp) {

Variable "lp_list" is not in valid camel caps format
Open

        foreach ($lp_list as $item) {

Variable "lp_date_original" is not in valid camel caps format
Open

            $mutation_date = api_strtotime($item['published_on']) > api_strtotime($lp_date_original) ? $item['published_on'] : $lp_date_original;

Variable "session_id" is not in valid camel caps format
Open

        api_get_path(WEB_CODE_PATH).'session/session_edit.php?page=resume_session.php&id='.$session_id

Variable "course_id" is not in valid camel caps format
Open

$url_week = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_by_week&session_id='.$session_id.'&course_id='.$course_id;

Variable "extra_params_exercise" is not in valid camel caps format
Open

    $extra_params_exercise['autowidth'] = 'true';

Variable "session_id" is not in valid camel caps format
Open

        $session_id

Variable "session_id" is not in valid camel caps format
Open

        $session_id

Variable "session_id" is not in valid camel caps format
Open

                    api_get_course_url($course_data['real_id'], $session_id)

Variable "course_data" is not in valid camel caps format
Open

        $course_info = api_get_course_info($course_data['code']);

Variable "lp_date_original" is not in valid camel caps format
Open

            if (strtotime($last_date) < strtotime($lp_date_original)) {

Variable "my_score" is not in valid camel caps format
Open

                        $my_score = $result['score'] / $result['max_score'];

Variable "session_id" is not in valid camel caps format
Open

                        $session_id,

Variable "new_exercises" is not in valid camel caps format
Open

    $my_real_array = array_merge($new_exercises, $my_real_array);

Variable "extra_params" is not in valid camel caps format
Open

$extra_params['autowidth'] = 'true'; //use the width of the parent

Variable "columns_courses" is not in valid camel caps format
Open

        $columns_courses,

Variable "course_data" is not in valid camel caps format
Open

                $course_data['title'],

Variable "course_data" is not in valid camel caps format
Open

            if (in_array($course_data['real_id'], $user_course_list) || api_is_anonymous()) {

Variable "course_info" is not in valid camel caps format
Open

        $exerciseCount = count($exerciseListPerCourse[$course_info['real_id']]);

Variable "max_mutation_date" is not in valid camel caps format
Open

        $max_mutation_date = '';

Variable "max_mutation_date" is not in valid camel caps format
Open

                $max_mutation_date = $mutation_date;

Variable "session_select" is not in valid camel caps format
Open

$session_select = [];

Variable "session_id" is not in valid camel caps format
Open

                        api_get_path(WEB_CODE_PATH)."exercise/overview.php?cid=$courseId&exerciseId={$exerciseId}&sid=$session_id",

Variable "new_course_list" is not in valid camel caps format
Open

$new_course_list = [];

Variable "my_real_array" is not in valid camel caps format
Open

    $my_real_array = array_merge($new_exercises, $my_real_array);

Variable "course_data" is not in valid camel caps format
Open

                    api_get_course_url($course_data['real_id'], $session_id)

Variable "column_week_model" is not in valid camel caps format
Open

$column_week_model = [

Variable "new_exercises" is not in valid camel caps format
Open

$my_real_array = $new_exercises = [];

Variable "start_date" is not in valid camel caps format
Open

                    $start_date = '-';

Variable "extra_params_week" is not in valid camel caps format
Open

$extra_params_week = [];

Variable "extra_params_week" is not in valid camel caps format
Open

$extra_params_week['grouping'] = 'true';

Variable "session_id" is not in valid camel caps format
Open

                    $session_id

Variable "new_exercises" is not in valid camel caps format
Open

                    $new_exercises[] = [

Variable "start_date" is not in valid camel caps format
Open

                        'date' => $start_date,

Variable "column_exercise" is not in valid camel caps format
Open

    $column_exercise = [

Variable "my_real_array" is not in valid camel caps format
Open

$my_real_array = msort($my_real_array, 'date', 'asc');

Variable "my_real_array" is not in valid camel caps format
Open

$my_real_array = msort($my_real_array, 'date', 'asc');

Variable "course_id" is not in valid camel caps format
Open

$url_by_course = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_by_course&session_id='.$session_id.'&course_id='.$course_id;

Variable "session_id" is not in valid camel caps format
Open

Session::write('id_session', $session_id);

Variable "final_array" is not in valid camel caps format
Open

$final_array = [];

Variable "user_course_list" is not in valid camel caps format
Open

            if (in_array($course_data['real_id'], $user_course_list) || api_is_anonymous()) {

Variable "lp_count" is not in valid camel caps format
Open

            'lp_count' => $lp_count,

Variable "platform_score" is not in valid camel caps format
Open

                        'result' => $platform_score,

Variable "extra_params_courses" is not in valid camel caps format
Open

$extra_params_courses['autowidth'] = 'true'; //use the width of the parent

Variable "extra_params" is not in valid camel caps format
Open

$extra_params = [];

Variable "extra_params_courses" is not in valid camel caps format
Open

        $extra_params_courses,

Variable "column_model" is not in valid camel caps format
Open

        $column_model,

Variable "user_course_list" is not in valid camel caps format
Open

if (empty($user_course_list)) {

Variable "user_list" is not in valid camel caps format
Open

    $user_list = UserManager::get_user_list();

Variable "platform_score" is not in valid camel caps format
Open

                    $platform_score = ExerciseLib::show_score(

Variable "best_score" is not in valid camel caps format
Open

                        'best_result' => $best_score,

Variable "extra_params_courses" is not in valid camel caps format
Open

$extra_params_courses['height'] = '100%';

Variable "column_model" is not in valid camel caps format
Open

$column_model = [

Variable "extra_params_course" is not in valid camel caps format
Open

$extra_params_course = [];

Variable "lp_list" is not in valid camel caps format
Open

        $lp_list = $list->get_flat_list();

Variable "best_score" is not in valid camel caps format
Open

                    $best_score = ExerciseLib::show_score(

Variable "best_score_data" is not in valid camel caps format
Open

                        $best_score_data['score'],

Variable "session_id" is not in valid camel caps format
Open

                    $session_id

Variable "allowed_time" is not in valid camel caps format
Open

                        $allowed_time = api_strtotime($exerciseInfo['start_time'], 'UTC');

Variable "extra_params_course" is not in valid camel caps format
Open

$extra_params_course['groupingView'] = [

Variable "extra_params_week" is not in valid camel caps format
Open

$extra_params_week['autowidth'] = 'true'; //use the width of the parent

Variable "column_model_courses" is not in valid camel caps format
Open

        $column_model_courses,

Variable "new_course_list" is not in valid camel caps format
Open

        $new_course_list

Variable "lp_date_original" is not in valid camel caps format
Open

                $lp_date_original = $item['modified_on'];

Variable "max_mutation_date" is not in valid camel caps format
Open

            if (api_strtotime($mutation_date) > api_strtotime($max_mutation_date)) {

Variable "lp_date_original" is not in valid camel caps format
Open

                        get_lang('Since your latest visit').': '.$label.' - '.$lp_date_original

Variable "course_data" is not in valid camel caps format
Open

            'title' => $course_data['title'].$icons,

Variable "session_select" is not in valid camel caps format
Open

        $session_select,

Variable "best_score" is not in valid camel caps format
Open

                $best_score = '';

Variable "best_score_data" is not in valid camel caps format
Open

                if (!empty($best_score_data)) {

Variable "user_course_list" is not in valid camel caps format
Open

        $user_course_list[] = $course['real_id'];

Variable "session_id" is not in valid camel caps format
Open

        api_get_self().'?session_id='.$session_id

Variable "session_id" is not in valid camel caps format
Open

            $session_id

Variable "user_list" is not in valid camel caps format
Open

                        $user_list

Variable "new_exercises" is not in valid camel caps format
Open

if (!empty($new_exercises)) {

Variable "extra_params_course" is not in valid camel caps format
Open

$extra_params_course['height'] = "100%";

Variable "session_id" is not in valid camel caps format
Open

            $session_id,

Variable "lp_date_original" is not in valid camel caps format
Open

            $mutation_date = api_strtotime($item['published_on']) > api_strtotime($lp_date_original) ? $item['published_on'] : $lp_date_original;

Variable "mutation_date" is not in valid camel caps format
Open

            if (api_strtotime($mutation_date) > api_strtotime($max_mutation_date)) {

Variable "session_id" is not in valid camel caps format
Open

    $defaults['session_id'] = $session_id;

Variable "session_id" is not in valid camel caps format
Open

    $user_list = SessionManager::get_users_by_session($session_id);

Variable "best_score_data" is not in valid camel caps format
Open

                        $best_score_data['max_score']

Variable "my_score" is not in valid camel caps format
Open

                    $my_score = 0;

Variable "course_id" is not in valid camel caps format
Open

$url = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_default&session_id='.$session_id.'&course_id='.$course_id;

Variable "extra_params_exercise" is not in valid camel caps format
Open

    $extra_params_exercise['height'] = '100%';

Variable "column_model" is not in valid camel caps format
Open

        $column_model,

Variable "column_week_model" is not in valid camel caps format
Open

        $column_week_model,

Variable "my_real_array" is not in valid camel caps format
Open

            $my_real_array

Variable "session_id" is not in valid camel caps format
Open

if (empty($session_id)) {

Variable "session_id" is not in valid camel caps format
Open

$session = api_get_session_entity($session_id);

Variable "session_id" is not in valid camel caps format
Open

$courseList = SessionManager::get_course_list_by_session_id($session_id);

Variable "course_data" is not in valid camel caps format
Open

            $course_data['title'] = Display::url(

Variable "session_id" is not in valid camel caps format
Open

                api_get_course_url($course_data['real_id'], $session_id)

Variable "lp_count" is not in valid camel caps format
Open

                    $lp_count++;

Variable "lp_date_original" is not in valid camel caps format
Open

                $lp_date_original = $item['created_on'];

Variable "column_model_courses" is not in valid camel caps format
Open

$column_model_courses = [

Variable "extra_params_course" is not in valid camel caps format
Open

$extra_params_course['grouping'] = 'true';

Variable "extra_params_week" is not in valid camel caps format
Open

$extra_params_week['height'] = '100%';

Variable "url_week" is not in valid camel caps format
Open

        $url_week,

Variable "extra_params_week" is not in valid camel caps format
Open

        $extra_params_week,

Variable "column_exercise" is not in valid camel caps format
Open

            $column_exercise,

Variable "session_id" is not in valid camel caps format
Open

        $session_id,

Variable "session_id" is not in valid camel caps format
Open

            $session_id

Variable "session_id" is not in valid camel caps format
Open

    $session_id,

Variable "session_list" is not in valid camel caps format
Open

$session_list = SessionManager::get_sessions_by_general_coach(api_get_user_id());

Variable "course_data" is not in valid camel caps format
Open

    foreach ($courseList as $course_data) {

Variable "course_info" is not in valid camel caps format
Open

        $course_info = api_get_course_info($course_data['code']);

Variable "mutation_date" is not in valid camel caps format
Open

                $max_mutation_date = $mutation_date;

Variable "new_course_list" is not in valid camel caps format
Open

        $new_course_list[] = [

Variable "allowed_time" is not in valid camel caps format
Open

                        if ($now < $allowed_time) {

Variable "my_real_array" is not in valid camel caps format
Open

    $my_real_array = array_merge($new_exercises, $my_real_array);

Variable "session_id" is not in valid camel caps format
Open

$url = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_default&session_id='.$session_id.'&course_id='.$course_id;

Variable "extra_params" is not in valid camel caps format
Open

$extra_params['height'] = '100%';

Variable "extra_params" is not in valid camel caps format
Open

        $extra_params,

Variable "this_section" is not in valid camel caps format
Open

$this_section = SECTION_COURSES;

Variable "course_data" is not in valid camel caps format
Open

            api_get_course_info($course_data['code']),

Variable "mutation_date" is not in valid camel caps format
Open

            $mutation_date = api_strtotime($item['published_on']) > api_strtotime($lp_date_original) ? $item['published_on'] : $lp_date_original;

Variable "last_date" is not in valid camel caps format
Open

            if (strtotime($last_date) < strtotime($lp_date_original)) {

Variable "session_select" is not in valid camel caps format
Open

    $session_select[$item['id']] = $item['name'];

Variable "best_score_data" is not in valid camel caps format
Open

                $best_score_data = ExerciseLib::get_best_attempt_in_course(

Variable "course_data" is not in valid camel caps format
Open

                api_get_course_url($course_data['real_id'], $session_id)

Variable "course_data" is not in valid camel caps format
Open

                $course_data['title'] = Display::url(

Variable "lp_list" is not in valid camel caps format
Open

        if (!empty($lp_list)) {

Variable "course_info" is not in valid camel caps format
Open

            $course_info,

Variable "session_id" is not in valid camel caps format
Open

            $session_id,

Variable "session_id" is not in valid camel caps format
Open

if (false == api_is_coach_of_course_in_session($session_id)) {

Variable "session_select" is not in valid camel caps format
Open

if (count($session_select) > 1) {

Variable "start_date" is not in valid camel caps format
Open

                    $start_date = $exerciseInfo['start_time'];

Variable "columns_courses" is not in valid camel caps format
Open

$columns_courses = [

Variable "column_week" is not in valid camel caps format
Open

$column_week = [

Variable "extra_params_week" is not in valid camel caps format
Open

$extra_params_week['groupingView'] = [

Variable "extra_params_course" is not in valid camel caps format
Open

        $extra_params_course,

Variable "url_by_course" is not in valid camel caps format
Open

        $url_by_course,

Variable "column_week" is not in valid camel caps format
Open

        $column_week,

Variable "column_exercise_model" is not in valid camel caps format
Open

            $column_exercise_model,

Variable "course_id" is not in valid camel caps format
Open

            $course_id,

Variable "extra_params_exercise" is not in valid camel caps format
Open

            $extra_params_exercise,

There are no issues that match your filters.

Category
Status