Lines Matching refs:groups
31 $this->addUserGroups($INPUT->str('user'), $INPUT->str('groups'));
39 $this->editUserGroups($INPUT->str('user'), $INPUT->str('groups'));
48 $INPUT->remove('groups');
53 $INPUT->set('groups', implode(
70 * Add groups to a user
73 * @param string $groups comma separated list of groups
76 protected function addUserGroups($user, $groups)
82 $groups = array_unique(array_map(
84 explode(',', $groups)
87 if ($user && $groups) {
88 $this->virtualGroups->addGroupsToUser($user, $groups);
152 * Set the groups of a user
155 * @param string $groups comma separated list of groups
158 protected function editUserGroups($user, $groups)
164 $groups = array_unique(array_map(
166 explode(',', $groups)
169 if ($user && $groups) {
170 $this->virtualGroups->setUserGroups($user, $groups);
268 foreach ($this->virtualGroups->getUserStructure() as $user => $groups) {
271 echo ' <td>' . hsc(implode(', ', $groups)) . '</td>';
334 * Return the form to add groups to a user
346 $form->addTextInput('groups', $this->getLang('grps'))->attr('placeholder', $this->getLang('grpsSample'));
353 * Return the form to edit the groups of a user
365 $form->addTextInput('groups', $this->getLang('grps'))->attr('placeholder', $this->getLang('grpsSample'));