Lines Matching refs:group
33 $this->addGroupUsers($INPUT->str('group'), $INPUT->str('users'));
37 $this->deleteGroup($INPUT->str('group'));
41 $this->editGroupUsers($INPUT->str('group'), $INPUT->str('users'));
47 $INPUT->remove('group');
59 // load group data if requested
61 $INPUT->set('group', $auth->cleanGroup($INPUT->str('loadgroup')));
83 static fn($group) => $auth->cleanGroup($group),
93 * Add users to a group
95 * @param string $group group name
99 protected function addGroupUsers($group, $users)
104 $group = $auth->cleanGroup($group);
110 if ($group && $users) {
111 $this->virtualGroups->addUsersToGroup($group, $users);
134 * Delete a group
136 * @param string $group group name
139 protected function deleteGroup($group)
144 $group = $auth->cleanGroup($group);
146 if ($group) {
147 $this->virtualGroups->removeGroup($group);
165 static fn($group) => $auth->cleanGroup($group),
175 * Set the users of a group
177 * @param string $group group name
181 protected function editGroupUsers($group, $users)
186 $group = $auth->cleanGroup($group);
192 if ($group && $users) {
193 $this->virtualGroups->setGroupUsers($group, $users);
290 * Print the by group tab
312 foreach ($this->virtualGroups->getGroupStructure() as $group => $users) {
314 echo ' <td>' . hsc($group) . '</td>';
317 echo $this->buttonDeleteGroup($group);
322 'loadgroup' => $group
391 * Return the form to add users to a group
402 $form->addTextInput('group', $this->getLang('grp'))->attr('placeholder', $this->getLang('grp'));
410 * Return the form to edit the users of a group
421 $form->addTextInput('group', $this->getLang('grp'))->attr('readonly', 'readonly');
429 * Return the form to delete a group
433 protected function buttonDeleteGroup($group)
439 $form->setHiddenField('group', $group);