Свойство | 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. |
Méthode | 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. |
Méthode | 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 | |
Résultat | array |
protected getConverterWithOptions ( string $converterName ) : LdapTools\AttributeConverter\AttributeConverterInterface | ||
$converterName | string | The name of the converter from the schema. |
Résultat | LdapTools\AttributeConverter\AttributeConverterInterface |
public static getInstance ( |
||
$schema | ||
$values | ||
$type | integer | |
Résultat |
abstract protected iterateAggregates ( array $toAggregate, mixed $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter ) : array | string | ||
$toAggregate | array | |
$values | mixed | |
$converter | LdapTools\AttributeConverter\AttributeConverterInterface | |
Résultat | 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 | ||
Résultat | LdapTools\Connection\LdapConnectionInterface |
protected LdapOperationInterface,LdapTools\Operation|null $operation | ||
Résultat | LdapTools\Operation\LdapOperationInterface | null |
protected array $options | ||
Résultat | array |
protected $remove |
protected LdapObjectSchema,LdapTools\Schema $schema | ||
Résultat |