class LdapUserInfo implements UserInfoInterface (View source)

Value object representing user information read from an LDAP entry

Methods

__construct(string $username, string $email = '', string $displayName = '', array $groups = [], string $subject = '')

No description

static LdapUserInfo
fromLdapEntry(array $entry, string $username, string $fullnameAttribute, string $emailAttribute, string $groupsAttribute = '')

Build from an ldap_get_entries() entry (attribute names lowercased, multi-valued attributes as ['count' => n, 0 => ...] arrays).

string
getUsername()

No description

string
getEmail()

No description

string
getFirstName()

No description

string
getLastName()

No description

string
getDisplayName()

No description

string
getFullName()

No description

array
getGroups()

No description

string
getProviderId()

No description

string
getSubject()

No description

array
getRawData()

No description

bool
hasGroup(string $group)

No description

bool
isValid()

No description

Details

__construct(string $username, string $email = '', string $displayName = '', array $groups = [], string $subject = '')

No description

Parameters

string $username
string $email
string $displayName
array $groups
string $subject

static LdapUserInfo fromLdapEntry(array $entry, string $username, string $fullnameAttribute, string $emailAttribute, string $groupsAttribute = '')

Build from an ldap_get_entries() entry (attribute names lowercased, multi-valued attributes as ['count' => n, 0 => ...] arrays).

Parameters

array $entry
string $username
string $fullnameAttribute
string $emailAttribute
string $groupsAttribute

Return Value

LdapUserInfo

string getUsername()

No description

Return Value

string

string getEmail()

No description

Return Value

string

string getFirstName()

No description

Return Value

string

string getLastName()

No description

Return Value

string

string getDisplayName()

No description

Return Value

string

string getFullName()

No description

Return Value

string

array getGroups()

No description

Return Value

array

string getProviderId()

No description

Return Value

string

string getSubject()

No description

Return Value

string

array getRawData()

No description

Return Value

array

bool hasGroup(string $group)

No description

Parameters

string $group

Return Value

bool

bool isValid()

No description

Return Value

bool