chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

            $archiveFile = 'export_sessions_'.$session_id.'_'.api_get_local_time().'.'.$file_type;

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

Display::display_header($tool_name);

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

    $access_url_id = api_get_current_access_url_id();

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

        if (in_array($file_type, ['csv', 'xls'])) {

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

            $archiveFile = 'export_sessions_'.$session_id.'_'.api_get_local_time();

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

            $archiveFile = 'export_sessions_'.$session_id.'_'.api_get_local_time().'.'.$file_type;

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

                $archiveFile = 'export_users_'.$session_id.'_'.api_get_local_time().'_'.uniqid('').'.'.$file_type;

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

        switch ($file_type) {

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

    $file_type = isset($_POST['file_type']) ? $_POST['file_type'] : 'csv';

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

                    $coachs[] = $row_coachs['username'];

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

                $archiveFile = 'export_users_'.$session_id.'_'.api_get_local_time().'_'.uniqid('').'.'.$file_type;

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

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

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

                    INNER JOIN $tbl_session_rel_access_url as session_rel_url

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

                $rs_coachs = Database::query($sql);

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

            $access_url_id = api_get_current_access_url_id();

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

                WHERE s.id='$session_id'";

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

$tool_name = get_lang('Export sessions list');

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

            $tbl_session_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_SESSION);

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

    if (-1 != $access_url_id) {

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

                INNER JOIN $tbl_session_rel_access_url as session_rel_url

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

                    WHERE session_rel_url.access_url_id = $access_url_id

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

            if (-1 != $access_url_id) {

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

                while ($row_coachs = Database::fetch_array($rs_coachs)) {

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

                while ($row_coachs = Database::fetch_array($rs_coachs)) {

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

    $session_id = $_POST['session_id'];

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

    if (empty($session_id)) {

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

            if (in_array($file_type, ['csv', 'xls'])) {

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

    $tbl_session_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_SESSION);

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

$this_section = SECTION_PLATFORM_ADMIN;

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

                WHERE access_url_id = $access_url_id

There are no issues that match your filters.

Category
Status