Adldap\Models\User::getPrimaryGroup PHP Méthode

getPrimaryGroup() public méthode

Retrieves the primary group of the current user.
public getPrimaryGroup ( ) : Model | boolean
Résultat Model | boolean
    public function getPrimaryGroup()
    {
        $groupSid = preg_replace('/\\d+$/', $this->getPrimaryGroupId(), $this->getSid());
        return $this->query->newInstance()->findBySid($groupSid);
    }