chamilo/chamilo-lms

View on GitHub
public/main/my_space/coaches.php

Summary

Maintainability
A
0 mins
Test Coverage

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

            FROM $tbl_user, $tbl_session_rel_course_rel_user srcru

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

            $sql_infos_coach = "SELECT lastname, firstname

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

            $timestamp_logout_date = strtotime($logout_date);

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

                        <a href="student.php?type=coach&user_id='.$id_coach.'">

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

            $data[$id_coach]["lastname"] = $lastname;

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

$tbl_course_user = Database::get_main_table(TABLE_MAIN_COURSE_USER);

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

            $tbl_course as c

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

            $result_coachs_infos = Database::query($sql_infos_coach);

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

                        <a href="student.php?type=coach&user_id='.$id_coach.'">

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

        $data[$id_coach]["connection_time"] = $s_connection_time;

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

if (Database::num_rows($result_coachs) > 0) {

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

            $s_connection_time = '';

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

            $data[$id_coach]["firstname"] = $firstname;

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

$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);

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

            $tbl_user as user,

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

$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);

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

$result_coachs = Database::query($sql_coachs);

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

    $order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname' : ' ORDER BY lastname, firstname';

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

            $css_class = "row_even";

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

            WHERE user_id='$id_coach'";

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

                        <a href="course.php?type=coach&user_id='.$id_coach.'">

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

            $firstname = Database::result($result_coachs_infos, 0, "firstname");

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

            $login_date = $connections["login_date"];

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

        $data[$id_coach]["connection_time"] = $s_connection_time;

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

$tbl_user = Database::get_main_table(TABLE_MAIN_USER);

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

    $order_clause = api_is_western_name_order(PERSON_NAME_DATA_EXPORT) ? ' ORDER BY firstname, lastname' : ' ORDER BY lastname, firstname';

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

    while ($coachs = Database::fetch_array($result_coachs)) {

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

            $s_connection_time = api_time_to_hms($nb_seconds);

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

        $id_coach = $coachs["id_coach"];

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

        WHERE login_user_id ='$id_coach' AND logout_date <> 'null'";

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

            $nb_seconds += ($timestamp_logout_date - $timestamp_login_date);

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

            $nb_seconds += ($timestamp_logout_date - $timestamp_login_date);

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

        FROM $tbl_session_rel_course_rel_user as srcru

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

            $timestamp_login_date = strtotime($login_date);

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

            $nb_seconds += ($timestamp_logout_date - $timestamp_login_date);

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

        if (0 == $nb_seconds) {

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

                 srcru.status=".Session::COURSE_COACH." ".$order_clause;

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

        $sql_connection_time = "SELECT login_date, logout_date

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

        $result_connection_time = Database::query($sql_connection_time);

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

        $nb_seconds = 0;

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

                        <a href="course.php?type=coach&user_id='.$id_coach.'">

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

            $tbl_course_user as course_rel_user,

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

            $lastname = Database::result($result_coachs_infos, 0, "lastname");

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

            $timestamp_logout_date = strtotime($logout_date);

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

            echo '<tr class="'.$css_class.'">

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

        $sql_coachs = "SELECT DISTINCT

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

                    <td>'.$s_connection_time.'</td>

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

$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

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

            $tbl_session_rel_course_rel_user as srcu,

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

        $result_connection_time = Database::query($sql_connection_time);

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

            $s_connection_time = api_time_to_hms($nb_seconds);

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

$tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);

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

        WHERE srcru.user_id='$id_student' AND srcru.status=".Session::COURSE_COACH;

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

        FROM $tbl_track_login

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

            $css_class = "row_odd";

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

            $data[$id_coach]["firstname"] = $firstname;

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

    $sql_coachs = "SELECT DISTINCT srcru.user_id as id_coach

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

            $data[$id_coach]["lastname"] = $lastname;

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

$tbl_track_login = Database::get_main_table(TABLE_STATISTIC_TRACK_E_LOGIN);

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

            FROM $tbl_user, $tbl_session_rel_course_rel_user srcru

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

                ".$order_clause;

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

$result_coachs = Database::query($sql_coachs);

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

            $result_coachs_infos = Database::query($sql_infos_coach);

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

$this_section = SECTION_TRACKING;

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

$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);

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

    $id_student = intval($_GET["id_student"]);

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

        $sql_coachs = "SELECT DISTINCT user_id as id_coach, user.id as user_id, lastname, firstname

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

            FROM $tbl_user

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

        while ($connections = Database::fetch_array($result_connection_time)) {

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

            $logout_date = $connections["logout_date"];

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

            $timestamp_login_date = strtotime($login_date);

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

            echo '<tr class="'.$css_class.'">

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

                    <td>'.$firstname.'</td><td>'.$lastname.'</td><td>'.$s_connection_time.'</td>

There are no issues that match your filters.

Category
Status