chamilo/chamilo-lms

View on GitHub
public/main/admin/access_url_edit_courses_to_url.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$this_section = SECTION_PLATFORM_ADMIN;

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

        document.formulaire.add_type.value=\''.$add_type.'\';

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

            UrlManager::update_urls_rel_course($course_list, $access_url_id);

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

    $course_list_leys = array_keys($course_list);

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

    $link_add_type_unique = '<a href="'.api_get_self().'?add_type=unique&access_url_id='.$access_url_id.'">'.

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

            $course_list[$course['c_id']] = $course;

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

$tool_name = get_lang('Edit courses of an URL');

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

    $add_type = Security::remove_XSS($_REQUEST['add_type']);

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

    if (1 == $form_sent) {

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

$ajax_search = 'unique' == $add_type ? true : false;

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

if ($ajax_search) {

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

$add_type = 'multiple';

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

    $access_url_id = Security::remove_XSS($_REQUEST['access_url_id']);

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

        $course_list[$course['c_id']] = $course;

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

        if ($course['access_url_id'] == $access_url_id) {

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

    $tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);

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

    $link_add_type_unique = '<a href="'.api_get_self().'?add_type=unique&access_url_id='.$access_url_id.'">'.

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

Display::page_subheader2($tool_name);

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

    $course_list = $_POST['course_list'];

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

        if (0 == $access_url_id) {

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

$no_course_list = $course_list = [];

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

$no_course_list = $course_list = [];

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

    $course_list_leys = array_keys($course_list);

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

    if (!is_array($course_list)) {

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

            UrlManager::update_urls_rel_course($course_list, $access_url_id);

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

        if (!in_array($course['id'], $course_list_leys)) {

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

$access_url_id = 1;

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

    $form_sent = $_POST['form_sent'];

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

        $course_list = [];

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

$ajax_search = 'unique' == $add_type ? true : false;

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

    $link_add_type_multiple = get_lang('Multiple registration');

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

        } elseif (is_array($course_list)) {

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

    $courses = UrlManager::get_url_rel_course_data($access_url_id);

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

            FROM $tbl_course u

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

            $no_course_list[$course['id']] = $course;

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

if ('multiple' == $add_type) {

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

    $link_add_type_multiple = '<a href="'.api_get_self().'?add_type=multiple&access_url_id='.$access_url_id.'">'.

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

        foreach ($url_list as $url_obj) {

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

                <option <?php echo $checked; ?> value="<?php echo $url_obj[0]; ?>"> <?php echo $url_obj[1]; ?></option>

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

                                <option value="<?php echo $no_course['id']; ?>"><?php echo $no_course['title'].' ('.$no_course['code'].')'; ?></option>

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

    <?php echo $link_add_type_unique; ?>&nbsp;|&nbsp;<?php echo $link_add_type_multiple; ?>

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

        foreach ($url_list as $url_obj) {

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

            if (!empty($access_url_id)) {

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

                if ($url_obj[0] == $access_url_id) {

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

                    foreach ($course_list as $course) {

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

                    $url_selected = $url_obj[1];

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

                            foreach ($no_course_list as $no_course) {

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

                if ($ajax_search) {

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

                    unset($course_list);

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

    <?php echo $link_add_type_unique; ?>&nbsp;|&nbsp;<?php echo $link_add_type_multiple; ?>

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

    <input type="hidden" name="add_type" value = "<?php echo $add_type; ?>" />

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

                    if ($ajax_search) {

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

                            foreach ($no_course_list as $no_course) {

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

    $link_add_type_unique = get_lang('Single registration');

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

                        unset($no_course_list); ?>

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

                if ($url_obj[0] == $access_url_id) {

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

                <option <?php echo $checked; ?> value="<?php echo $url_obj[0]; ?>"> <?php echo $url_obj[1]; ?></option>

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

                                <option value="<?php echo $no_course['id']; ?>"><?php echo $no_course['title'].' ('.$no_course['code'].')'; ?></option>

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

<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>" style="margin:0px;" <?php if ($ajax_search) {

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

                    $url_selected = $url_obj[1];

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

            if (1 == $url_obj['active']) {

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

    $link_add_type_multiple = '<a href="'.api_get_self().'?add_type=multiple&access_url_id='.$access_url_id.'">'.

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

$url_list = UrlManager::get_url_data();

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

                                <option value="<?php echo $no_course['id']; ?>"><?php echo $no_course['title'].' ('.$no_course['code'].')'; ?></option>

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

        $url_selected = '';

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

            <td align="center"><b><?php echo get_lang('Courses of').' '.$url_selected; ?></b></td>

Line indented incorrectly; expected at least 28 spaces, found 24
Open

                        unset($no_course_list); ?>

Closing brace indented incorrectly; expected 46 spaces, found 0
Open

}?> >

There are no issues that match your filters.

Category
Status