PHP Class LdapTools\Resolver\AttributeValueResolver

Author: Chad Sikorra ([email protected])
Inheritance: extends BaseValueResolver
Datei anzeigen Open project: ldaptools/ldaptools

Protected Properties

Property Type Description
$converted If the attribute was converted using an aggregate it will be placed here so it can be skipped.
$entry array The LDAP entry in [ 'attribute' => 'value' ] form.

Public Methods

Method Description
__construct ( LdapObjectSchema $schema, array $entry, integer $type )
fromLdap ( ) : array Convert values from LDAP.
toLdap ( ) : array Convert values to LDAP.

Protected Methods

Method Description
convert ( array $attributes, boolean $toLdap = true ) : array Perform the attribute conversion process.
iterateAggregates ( array $toAggregate, $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter )
removeValuesFromEntry ( array $entry, array $values ) : array Cleans up the entry/batch array by removing any values that are specified.

Method Details

__construct() public method

public __construct ( LdapObjectSchema $schema, array $entry, integer $type )
$schema LdapTools\Schema\LdapObjectSchema
$entry array The [ attribute => value ] entries.
$type integer The LDAP operation type. See AttributeConverterInterface::TYPE_*.

convert() protected method

Perform the attribute conversion process.
protected convert ( array $attributes, boolean $toLdap = true ) : array
$attributes array
$toLdap boolean
return array

fromLdap() public method

Convert values from LDAP.
public fromLdap ( ) : array
return array

iterateAggregates() protected method

protected iterateAggregates ( array $toAggregate, $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter )
$toAggregate array
$converter LdapTools\AttributeConverter\AttributeConverterInterface

removeValuesFromEntry() protected method

Cleans up the entry/batch array by removing any values that are specified.
protected removeValuesFromEntry ( array $entry, array $values ) : array
$entry array
$values array
return array

toLdap() public method

Convert values to LDAP.
public toLdap ( ) : array
return array

Property Details

$converted protected_oe property

If the attribute was converted using an aggregate it will be placed here so it can be skipped.
protected $converted

$entry protected_oe property

The LDAP entry in [ 'attribute' => 'value' ] form.
protected array $entry
return array