Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Entry

Fonctions membres publiques

 __construct (string $dn, array $attributes=[])
 
 getDn ()
 
 hasAttribute (string $name)
 
 getAttribute (string $name)
 
 getAttributes ()
 
 setAttribute (string $name, array $value)
 
 removeAttribute (string $name)
 

Fonctions membres privées

 getAttributeKey (string $name, bool $caseSensitive=true)
 

Attributs privés

 $dn
 
 $attributes = []
 
 $lowerMap = []
 

Description détaillée

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( string  $dn,
array  $attributes = [] 
)
Paramètres
array<string,array>$attributes

Références Entry\$attributes, Entry\$dn, $key, et Entry\setAttribute().

Documentation des fonctions membres

◆ getAttribute()

getAttribute ( string  $name)

Returns a specific attribute's value.

As LDAP can return multiple values for a single attribute, this value is returned as an array.

Paramètres
string$nameThe name of the attribute
bool$caseSensitiveWhether the attribute name is case-sensitive
Renvoie
array|null

Références Entry\getAttributeKey(), et null.

Référencé par LdapUserProvider\getAttributeValue().

◆ getAttributeKey()

getAttributeKey ( string  $name,
bool  $caseSensitive = true 
)
private

Références $name, et null.

Référencé par Entry\getAttribute(), et Entry\hasAttribute().

◆ getAttributes()

getAttributes ( )

Returns the complete list of attributes.

Renvoie
array

Références Entry\$attributes.

Référencé par EntryManager\add(), et EntryManager\update().

◆ getDn()

◆ hasAttribute()

hasAttribute ( string  $name)

Returns whether an attribute exists.

Paramètres
string$nameThe name of the attribute
bool$caseSensitiveWhether the check should be case-sensitive
Renvoie
bool

Références Entry\getAttributeKey(), et null.

Référencé par LdapUserProvider\getAttributeValue().

◆ removeAttribute()

removeAttribute ( string  $name)

Removes a given attribute.

Références $name.

◆ setAttribute()

setAttribute ( string  $name,
array  $value 
)

Sets a value for the given attribute.

Références $name, et $value.

Référencé par Entry\__construct().

Documentation des champs

◆ $attributes

$attributes = []
private

◆ $dn

$dn
private

Référencé par Entry\__construct(), et Entry\getDn().

◆ $lowerMap

$lowerMap = []
private

La documentation de cette classe a été générée à partir du fichier suivant :