chamilo/chamilo-lms

View on GitHub
public/main/group/group_creation.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    var number_of_groups = <?php echo $number_of_groups; ?>;

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

            $group_el[] = $form->createElement(

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

    $create_groups_form->addElement('header', $nameTools);

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

    $create_groups_form->addButton('submit', get_lang('Proceed to create group(s)'), 'plus', 'primary');

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

            $form->addGroup($group_el, 'group_'.$group_number, null, '</td><td>', false);

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

        $number_of_groups = (int) ($_POST['number_of_groups']);

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

        $element_template = <<<EOT

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

        $form->addGroup($group_el, 'groups', null, '</td><td>', false);

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

            $group_el = [];

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

$current_course_tool = TOOL_GROUP;

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

        $form_template = "<form {attributes}>\n<div class='create-groups'>\n<table>\n{content}\n</table>\n</div>\n</form>";

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

                $group_el[] = $form->createElement('hidden', 'group_'.$group_number.'_category', 0);

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

            $group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('Group category').'</b>');

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

            $group_el[] = $form->createElement('text', 'group_'.$group_number.'_name');

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

                $group_el[] = $form->createElement(

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

                if ($number_of_students > 0) {

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

                $defaults['group_'.$group_number.'_category'] = null;

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

            $defaults['group_'.$group_number.'_name'] = get_lang('Group').' '.$prev.$numberOfGroups++;

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

                $number_of_students = GroupManager::number_of_students($groupId);

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

                $group_el[] = $form->createElement(

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

                'group_'.$group_number.'_places',

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

            $base_group_options = [];

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

                    $base_group_options[$groupId] = $group['name'].' ('.$number_of_students.' '.get_lang('Users').')';

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

        $renderer->setFormTemplate($form_template);

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

        $renderer->setCustomElementTemplate($element_template);

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

            $group_el[] = $form->createElement('static', null, null, ' ');

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

    $create_groups_form = new FormValidator('create_groups', 'post', api_get_self().'?'.api_get_cidreq());

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

    $create_groups_form->addText('number_of_groups', get_lang('Number of groups to create'), null, ['value' => '1']);

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

            $number_of_users = count($obj->get_users_by_usergroup($class['id']));

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

        $group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('seats (optional)').'</b>');

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

    $create_groups_form->setDefaults($defaults);

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

$this_section = SECTION_COURSES;

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

        $group_el = [];

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

        for ($group_number = 0; $group_number < $_POST['number_of_groups']; $group_number++) {

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

                $group_el[] = $form->createElement('hidden', 'group_'.$group_number.'_category', 0);

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

                ['class' => 'span1', 'id' => 'places_'.$group_number]

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

    $create_groups_form->display();

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

            $description .= ' ('.$number_of_users.' '.get_lang('Users').')';

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

            $form->addGroup($group_el, 'groups', null, '</td><td>', false);

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

        for ($group_number = 0; $group_number < $_POST['number_of_groups']; $group_number++) {

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

            $group_el[] = $form->createElement('text', 'group_'.$group_number.'_name');

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

        $group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('Group name').'</b>');

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

                    'group_'.$group_number.'_category',

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

                    $base_group_options[$groupId] = $group['name'].' ('.$number_of_students.' '.get_lang('Users').')';

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

        if ($number_of_groups > 1) {

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

        for ($group_number = 0; $group_number < $_POST['number_of_groups']; $group_number++) {

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

            $group_el = [];

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

            $group_el[] = $form->createElement(

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

                    ['id' => 'category_'.$group_number]

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

            $form->addGroup($group_el, 'group_'.$group_number, null, '</td><td>', false);

There are no issues that match your filters.

Category
Status