Property | Type | Description | |
---|---|---|---|
$aggregated | Attribute names that were merged into a single attribute. | ||
$connection | LdapTools\Connection\LdapConnectionInterface | ||
$dn | The full DN of the LDAP entry for this context. | ||
$operation | LdapTools\Operation\LdapOperationInterface | null | ||
$options | array | Any converter options defined by the schema object. | |
$remove | Attribute names that should be removed as the result of an operation generator. | ||
$schema | |||
$type | The LDAP operation type that the converter is working against. |
Method | Description | |
---|---|---|
__construct ( |
||
getInstance ( |
Factory method for instantiation. | |
setDn ( string $dn ) | Set the DN for the entry whose values are being converted. | |
setLdapConnection ( LdapTools\Connection\LdapConnectionInterface $connection ) | Set the LDAP connection for the current context. | |
setOperation ( LdapTools\Operation\LdapOperationInterface $operation = null ) | Set the LDAP operation being executed. |
Method | Description | |
---|---|---|
convertAggregateValues ( string $attribute, array $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter ) : array | Loops through all the attributes that are to be aggregated into a single attribute for a specific converter. | |
doConvertValues ( string $attribute, array $values, string $direction, LdapTools\AttributeConverter\AttributeConverterInterface $converter = null ) : mixed | Convert a set of values for an attribute. | |
encodeValues ( array | string $values ) : array | Encodes any values with the needed type for LDAP. | |
getConvertedValues ( mixed $values, string $attribute, string $direction, LdapTools\AttributeConverter\AttributeConverterInterface | null $aggregate = null ) : array | Get the values for an attribute after applying any converters. | |
getConverterWithOptions ( string $converterName ) : LdapTools\AttributeConverter\AttributeConverterInterface | Get an instance of a converter with its options set. | |
iterateAggregates ( array $toAggregate, mixed $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter ) : array | string | Iterate through the aggregates for a specific LDAP value to build up the value it should actually be. |
public __construct ( |
||
$schema | ||
$type | integer |
protected getConvertedValues ( mixed $values, string $attribute, string $direction, LdapTools\AttributeConverter\AttributeConverterInterface | null $aggregate = null ) : array | ||
$values | mixed | |
$attribute | string | |
$direction | string | |
$aggregate | LdapTools\AttributeConverter\AttributeConverterInterface | null | |
return | array |
protected getConverterWithOptions ( string $converterName ) : LdapTools\AttributeConverter\AttributeConverterInterface | ||
$converterName | string | The name of the converter from the schema. |
return | LdapTools\AttributeConverter\AttributeConverterInterface |
public static getInstance ( |
||
$schema | ||
$values | ||
$type | integer | |
return |
abstract protected iterateAggregates ( array $toAggregate, mixed $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter ) : array | string | ||
$toAggregate | array | |
$values | mixed | |
$converter | LdapTools\AttributeConverter\AttributeConverterInterface | |
return | array | string | The final value after all possible values have been iterated through. |
public setLdapConnection ( LdapTools\Connection\LdapConnectionInterface $connection ) | ||
$connection | LdapTools\Connection\LdapConnectionInterface |
public setOperation ( LdapTools\Operation\LdapOperationInterface $operation = null ) | ||
$operation | LdapTools\Operation\LdapOperationInterface |
protected $aggregated |
protected LdapConnectionInterface,LdapTools\Connection $connection | ||
return | LdapTools\Connection\LdapConnectionInterface |
protected LdapOperationInterface,LdapTools\Operation|null $operation | ||
return | LdapTools\Operation\LdapOperationInterface | null |
protected array $options | ||
return | array |
protected $remove |
protected LdapObjectSchema,LdapTools\Schema $schema | ||
return |