public/main/group/group_creation.php
Variable "number_of_groups" is not in valid camel caps format Open
Open
var number_of_groups = <?php echo $number_of_groups; ?>;
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement(
- Exclude checks
Variable "create_groups_form" is not in valid camel caps format Open
Open
$create_groups_form->addElement('header', $nameTools);
- Exclude checks
Variable "create_groups_form" is not in valid camel caps format Open
Open
$create_groups_form->addButton('submit', get_lang('Proceed to create group(s)'), 'plus', 'primary');
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$form->addGroup($group_el, 'group_'.$group_number, null, '</td><td>', false);
- Exclude checks
Variable "number_of_groups" is not in valid camel caps format Open
Open
$number_of_groups = (int) ($_POST['number_of_groups']);
- Exclude checks
Variable "element_template" is not in valid camel caps format Open
Open
$element_template = <<<EOT
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$form->addGroup($group_el, 'groups', null, '</td><td>', false);
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el = [];
- Exclude checks
Variable "current_course_tool" is not in valid camel caps format Open
Open
$current_course_tool = TOOL_GROUP;
- Exclude checks
Variable "form_template" is not in valid camel caps format Open
Open
$form_template = "<form {attributes}>\n<div class='create-groups'>\n<table>\n{content}\n</table>\n</div>\n</form>";
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement('hidden', 'group_'.$group_number.'_category', 0);
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('Group category').'</b>');
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement('text', 'group_'.$group_number.'_name');
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement(
- Exclude checks
Variable "number_of_students" is not in valid camel caps format Open
Open
if ($number_of_students > 0) {
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
$defaults['group_'.$group_number.'_category'] = null;
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
$defaults['group_'.$group_number.'_name'] = get_lang('Group').' '.$prev.$numberOfGroups++;
- Exclude checks
Variable "number_of_students" is not in valid camel caps format Open
Open
$number_of_students = GroupManager::number_of_students($groupId);
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement(
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
'group_'.$group_number.'_places',
- Exclude checks
Variable "base_group_options" is not in valid camel caps format Open
Open
$base_group_options = [];
- Exclude checks
Variable "number_of_students" is not in valid camel caps format Open
Open
$base_group_options[$groupId] = $group['name'].' ('.$number_of_students.' '.get_lang('Users').')';
- Exclude checks
Variable "form_template" is not in valid camel caps format Open
Open
$renderer->setFormTemplate($form_template);
- Exclude checks
Variable "element_template" is not in valid camel caps format Open
Open
$renderer->setCustomElementTemplate($element_template);
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement('static', null, null, ' ');
- Exclude checks
Variable "create_groups_form" is not in valid camel caps format Open
Open
$create_groups_form = new FormValidator('create_groups', 'post', api_get_self().'?'.api_get_cidreq());
- Exclude checks
Variable "create_groups_form" is not in valid camel caps format Open
Open
$create_groups_form->addText('number_of_groups', get_lang('Number of groups to create'), null, ['value' => '1']);
- Exclude checks
Variable "number_of_users" is not in valid camel caps format Open
Open
$number_of_users = count($obj->get_users_by_usergroup($class['id']));
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('seats (optional)').'</b>');
- Exclude checks
Variable "create_groups_form" is not in valid camel caps format Open
Open
$create_groups_form->setDefaults($defaults);
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el = [];
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
for ($group_number = 0; $group_number < $_POST['number_of_groups']; $group_number++) {
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement('hidden', 'group_'.$group_number.'_category', 0);
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
['class' => 'span1', 'id' => 'places_'.$group_number]
- Exclude checks
Variable "create_groups_form" is not in valid camel caps format Open
Open
$create_groups_form->display();
- Exclude checks
Variable "number_of_users" is not in valid camel caps format Open
Open
$description .= ' ('.$number_of_users.' '.get_lang('Users').')';
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$form->addGroup($group_el, 'groups', null, '</td><td>', false);
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
for ($group_number = 0; $group_number < $_POST['number_of_groups']; $group_number++) {
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement('text', 'group_'.$group_number.'_name');
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement('static', null, null, '<b>'.get_lang('Group name').'</b>');
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
'group_'.$group_number.'_category',
- Exclude checks
Variable "base_group_options" is not in valid camel caps format Open
Open
$base_group_options[$groupId] = $group['name'].' ('.$number_of_students.' '.get_lang('Users').')';
- Exclude checks
Variable "number_of_groups" is not in valid camel caps format Open
Open
if ($number_of_groups > 1) {
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
for ($group_number = 0; $group_number < $_POST['number_of_groups']; $group_number++) {
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el = [];
- Exclude checks
Variable "group_el" is not in valid camel caps format Open
Open
$group_el[] = $form->createElement(
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
['id' => 'category_'.$group_number]
- Exclude checks
Variable "group_number" is not in valid camel caps format Open
Open
$form->addGroup($group_el, 'group_'.$group_number, null, '</td><td>', false);
- Exclude checks