PHP Class LdapTools\Resolver\BatchValueResolver

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

Protected Properties

Свойство Type Description
$batches that contains all the batches to process.
$currentBatchIndex The current batch index number being processed.

Méthodes publiques

Méthode Description
__construct ( LdapObjectSchema $schema, BatchCollection $batches, integer $type )
toLdap ( ) : BatchCollection Convert the batch values to LDAP batch mod specifications array.

Méthodes protégées

Méthode Description
batchCanConvert ( Batch $batch ) : boolean Determine if a specific batch is correctly formatted and needs conversion.
getBatchesForAttributes ( array $attributes ) : array Given an array of attribute names, get all of the batches they have with their respective indexes
getConverterWithOptions ( $converterName )
iterateAggregates ( array $toAggregate, $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter )
validateBatchAggregate ( Batch $batch, LdapTools\AttributeConverter\AttributeConverterInterface $converter ) When aggregating a set of values they need to be modified with 'set'. The other methods ('reset', 'add', or 'remove') are not valid. Additionally, all batch modification array keys should be present. However, the converter can determine whether the batch operation is valid with the 'isBatchSupported()' method.

Method Details

__construct() public méthode

public __construct ( LdapObjectSchema $schema, BatchCollection $batches, integer $type )
$schema LdapTools\Schema\LdapObjectSchema
$batches LdapTools\BatchModify\BatchCollection
$type integer The LDAP operation type. See AttributeConverterInterface::TYPE_*.

batchCanConvert() protected méthode

Determine if a specific batch is correctly formatted and needs conversion.
protected batchCanConvert ( Batch $batch ) : boolean
$batch LdapTools\BatchModify\Batch
Résultat boolean

getBatchesForAttributes() protected méthode

Given an array of attribute names, get all of the batches they have with their respective indexes
protected getBatchesForAttributes ( array $attributes ) : array
$attributes array
Résultat array

getConverterWithOptions() protected méthode

protected getConverterWithOptions ( $converterName )

iterateAggregates() protected méthode

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

toLdap() public méthode

Convert the batch values to LDAP batch mod specifications array.
public toLdap ( ) : BatchCollection
Résultat LdapTools\BatchModify\BatchCollection

validateBatchAggregate() protected méthode

When aggregating a set of values they need to be modified with 'set'. The other methods ('reset', 'add', or 'remove') are not valid. Additionally, all batch modification array keys should be present. However, the converter can determine whether the batch operation is valid with the 'isBatchSupported()' method.
protected validateBatchAggregate ( Batch $batch, LdapTools\AttributeConverter\AttributeConverterInterface $converter )
$batch LdapTools\BatchModify\Batch
$converter LdapTools\AttributeConverter\AttributeConverterInterface

Property Details

$batches protected_oe property

that contains all the batches to process.
protected $batches

$currentBatchIndex protected_oe property

The current batch index number being processed.
protected $currentBatchIndex