PHP Trait LdapTools\Utilities\ConverterUtilitiesTrait

Author: Chad Sikorra ([email protected])
Afficher le fichier Open project: ldaptools/ldaptools

Méthodes publiques

Méthode Description
getAttribute ( ) : string
getBatch ( ) : Batch | null
getDn ( ) : string | null
getLastValue ( ) : mixed
getLdapConnection ( ) : LdapTools\Connection\LdapConnectionInterface | null
getOperationType ( ) : integer
setLastValue ( $value )

Méthodes protégées

Méthode Description
getArrayValue ( array $options, string $key ) Get the value of an array key in a case-insensitive way.
getCurrentLdapAttributeValue ( string $attribute ) : array | string | null This can be called to retrieve the current value of an attribute from LDAP.
modifyMultivaluedAttribute ( array $values, array $newValues ) : array Modifies a multivalued attribute array based off the original values, the new values, and the modification type.
setDefaultLastValue ( string $attribute, mixed $default ) Specify an attribute to query to set as the last value. If that is not found, have it set the value specified by whatever you pass to $default.
validateCurrentAttribute ( array $options ) If the current attribute does not exist in the array, then throw an error.

Method Details

getArrayValue() protected méthode

Get the value of an array key in a case-insensitive way.
protected getArrayValue ( array $options, string $key )
$options array
$key string

getAttribute() abstract public méthode

abstract public getAttribute ( ) : string
Résultat string

getBatch() abstract public méthode

abstract public getBatch ( ) : Batch | null
Résultat LdapTools\BatchModify\Batch | null

getCurrentLdapAttributeValue() protected méthode

This can be called to retrieve the current value of an attribute from LDAP.
protected getCurrentLdapAttributeValue ( string $attribute ) : array | string | null
$attribute string The attribute name to query for a value from the converter context
Résultat array | string | null

getDn() abstract public méthode

abstract public getDn ( ) : string | null
Résultat string | null

getLastValue() abstract public méthode

abstract public getLastValue ( ) : mixed
Résultat mixed

getLdapConnection() abstract public méthode

abstract public getLdapConnection ( ) : LdapTools\Connection\LdapConnectionInterface | null
Résultat LdapTools\Connection\LdapConnectionInterface | null

getOperationType() abstract public méthode

abstract public getOperationType ( ) : integer
Résultat integer

modifyMultivaluedAttribute() protected méthode

Modifies a multivalued attribute array based off the original values, the new values, and the modification type.
protected modifyMultivaluedAttribute ( array $values, array $newValues ) : array
$values array
$newValues array
Résultat array

setDefaultLastValue() protected méthode

Specify an attribute to query to set as the last value. If that is not found, have it set the value specified by whatever you pass to $default.
protected setDefaultLastValue ( string $attribute, mixed $default )
$attribute string
$default mixed

setLastValue() abstract public méthode

abstract public setLastValue ( $value )

validateCurrentAttribute() protected méthode

If the current attribute does not exist in the array, then throw an error.
protected validateCurrentAttribute ( array $options )
$options array