Lines Matching refs:grps
190 $this->_setSession($attrs['id'], $data['grps'], $attrs['email'], $attrs['fullname']);
223 private function _setSession(string $user, array $grps = null, string $mail = null, string $name = null): void {
229 $USERINFO['grps'] = array_filter((array)$grps);
306 'grps' => explode(',', $row[4])
313 $data = ['name' => $user, 'mail' => $user, 'grps' => []];
318 $data = ['name' => $attrs['fullname'], 'mail' => $attrs['email'], 'grps' => []];
321 $grps = array_key_exists($user, $this->_users) ? $this->_users[$user]['grps'] : [];
322 $data['grps'] = array_unique(array_merge($grps, $data['grps'], ['session']));
324 return $requireGroups ? $data : array_diff_key($data, ['grps' => null]);