PHP 클래스 LdapTools\Resolver\BaseValueResolver

저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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