PHP Класс LdapTools\Resolver\BaseValueResolver

Автор: Chad Sikorra ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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 LdapTools\Schema\LdapObjectSchema
$type The LDAP operation type that the converter is working against.

Открытые методы

Метод Описание
__construct ( LdapObjectSchema $schema = null, integer $type )
getInstance ( LdapObjectSchema $schema = null, BatchCollection | OperatorCollection | array $values, integer $type ) : AttributeValueResolver | BatchValueResolver 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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

public __construct ( LdapObjectSchema $schema = null, integer $type )
$schema LdapTools\Schema\LdapObjectSchema
$type integer

convertAggregateValues() защищенный Метод

Loops through all the attributes that are to be aggregated into a single attribute for a specific converter.
protected convertAggregateValues ( string $attribute, array $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter ) : array
$attribute string
$values array
$converter LdapTools\AttributeConverter\AttributeConverterInterface
Результат array

doConvertValues() защищенный Метод

Convert a set of values for an attribute.
protected doConvertValues ( string $attribute, array $values, string $direction, LdapTools\AttributeConverter\AttributeConverterInterface $converter = null ) : mixed
$attribute string
$values array
$direction string
$converter LdapTools\AttributeConverter\AttributeConverterInterface
Результат mixed

encodeValues() защищенный Метод

Encodes any values with the needed type for LDAP.
protected encodeValues ( array | string $values ) : array
$values array | string
Результат array

getConvertedValues() защищенный Метод

Get the values for an attribute after applying any converters.
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
Результат array

getConverterWithOptions() защищенный Метод

Get an instance of a converter with its options set.
protected getConverterWithOptions ( string $converterName ) : LdapTools\AttributeConverter\AttributeConverterInterface
$converterName string The name of the converter from the schema.
Результат LdapTools\AttributeConverter\AttributeConverterInterface

getInstance() публичный статический Метод

Factory method for instantiation.
public static getInstance ( LdapObjectSchema $schema = null, BatchCollection | OperatorCollection | array $values, integer $type ) : AttributeValueResolver | BatchValueResolver
$schema LdapTools\Schema\LdapObjectSchema
$values LdapTools\BatchModify\BatchCollection | LdapTools\Query\OperatorCollection | array
$type integer
Результат AttributeValueResolver | BatchValueResolver

iterateAggregates() абстрактный защищенный Метод

Iterate through the aggregates for a specific LDAP value to build up the value it should actually be.
abstract protected iterateAggregates ( array $toAggregate, mixed $values, LdapTools\AttributeConverter\AttributeConverterInterface $converter ) : array | string
$toAggregate array
$values mixed
$converter LdapTools\AttributeConverter\AttributeConverterInterface
Результат array | string The final value after all possible values have been iterated through.

setDn() публичный Метод

Set the DN for the entry whose values are being converted.
public setDn ( string $dn )
$dn string

setLdapConnection() публичный Метод

Set the LDAP connection for the current context.
public setLdapConnection ( LdapTools\Connection\LdapConnectionInterface $connection )
$connection LdapTools\Connection\LdapConnectionInterface

setOperation() публичный Метод

Set the LDAP operation being executed.
public setOperation ( LdapTools\Operation\LdapOperationInterface $operation = null )
$operation LdapTools\Operation\LdapOperationInterface

Описание свойств

$aggregated защищенное свойство

Attribute names that were merged into a single attribute.
protected $aggregated

$connection защищенное свойство

protected LdapConnectionInterface,LdapTools\Connection $connection
Результат LdapTools\Connection\LdapConnectionInterface

$dn защищенное свойство

The full DN of the LDAP entry for this context.
protected $dn

$operation защищенное свойство

protected LdapOperationInterface,LdapTools\Operation|null $operation
Результат LdapTools\Operation\LdapOperationInterface | null

$options защищенное свойство

Any converter options defined by the schema object.
protected array $options
Результат array

$remove защищенное свойство

Attribute names that should be removed as the result of an operation generator.
protected $remove

$schema защищенное свойство

protected LdapObjectSchema,LdapTools\Schema $schema
Результат LdapTools\Schema\LdapObjectSchema

$type защищенное свойство

The LDAP operation type that the converter is working against.
protected $type