PHP Class LdapTools\Resolver\BatchValueResolver

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

Protected Properties

Property Type Description
$batches that contains all the batches to process.
$currentBatchIndex The current batch index number being processed.

Public Methods

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

Protected Methods

Method 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 method

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 method

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

getBatchesForAttributes() protected method

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

getConverterWithOptions() protected method

protected getConverterWithOptions ( $converterName )

iterateAggregates() protected method

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

toLdap() public method

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

validateBatchAggregate() protected method

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