PHP 클래스 LdapTools\Hydrator\ArrayHydrator

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

보호된 프로퍼티들

프로퍼티 타입 설명
$connection LdapTools\Connection\LdapConnectionInterface | null
$orderBy The attributes to order by.
$parameters Default parameter values that have been set.
$schema LdapTools\Schema\LdapObjectSchema
$selectedAttributes The attributes selected for in the query.
$type The operation type that is requesting this hydration process.

공개 메소드들

메소드 설명
__construct ( LdapTools\Connection\LdapConnectionInterface $connection = null )
getLdapObjectSchema ( )
getParameters ( ) : array Get the array of additional possible parameters that have been set for the hydrator.
getSelectedAttributes ( )
hydrateAllFromLdap ( array $entries )
hydrateFromLdap ( array $entry )
hydrateToLdap ( $attributes )
setLdapConnection ( LdapTools\Connection\LdapConnectionInterface $connection = null )
setLdapObjectSchema ( LdapObjectSchema $schema = null )
setOperationType ( $type )
setOrderBy ( array $orderBy )
setParameter ( string $name, string $value ) Sets a parameter that can be used within an attribute value.
setSelectedAttributes ( array $attributes )

보호된 메소드들

메소드 설명
configureValueResolver ( BaseValueResolver $valueResolver, null | string $dn = null ) Retrieve the AttributeValueResolver instance with the connection and other information set if needed.
convertNamesFromLdap ( array $entry ) : array Replace the LDAP attribute names with the schema names if there is a schema present.
convertNamesToLdap ( array $attributes ) : array Converts attribute names from their schema defined value to the value LDAP needs them in.
convertValuesFromLdap ( array $entry ) : array Replace attribute values with the converted values if the attribute has a converter defined.
convertValuesToLdap ( array | BatchCollection | OperatorCollection $values, string | null $dn = null ) : array | BatchCollection | OperatorCollection Checks for attributes assigned an attribute converter. It will replace the value with the converted value then send back all the attributes.
mergeDefaultAttributes ( array $attributes ) : array Returns all of the attributes to be sent to LDAP after factoring in possible default schema values.
resolveParameters ( array $attributes ) : array Resolves all parameters within an array of attributes.
setAttributeFromLdap ( array $entry, string $attribute, string | array $value ) : array Given a specific attribute and value add it to the newly formed LDAP entry array.
validateAttributesToLdap ( array $attributes ) Checks to make sure all required attributes are present.

메소드 상세

__construct() 공개 메소드

public __construct ( LdapTools\Connection\LdapConnectionInterface $connection = null )
$connection LdapTools\Connection\LdapConnectionInterface

configureValueResolver() 보호된 메소드

Retrieve the AttributeValueResolver instance with the connection and other information set if needed.
protected configureValueResolver ( BaseValueResolver $valueResolver, null | string $dn = null )
$valueResolver LdapTools\Resolver\BaseValueResolver
$dn null | string

convertNamesFromLdap() 보호된 메소드

Replace the LDAP attribute names with the schema names if there is a schema present.
protected convertNamesFromLdap ( array $entry ) : array
$entry array
리턴 array

convertNamesToLdap() 보호된 메소드

Converts attribute names from their schema defined value to the value LDAP needs them in.
protected convertNamesToLdap ( array $attributes ) : array
$attributes array
리턴 array

convertValuesFromLdap() 보호된 메소드

Replace attribute values with the converted values if the attribute has a converter defined.
protected convertValuesFromLdap ( array $entry ) : array
$entry array
리턴 array

convertValuesToLdap() 보호된 메소드

Checks for attributes assigned an attribute converter. It will replace the value with the converted value then send back all the attributes.
protected convertValuesToLdap ( array | BatchCollection | OperatorCollection $values, string | null $dn = null ) : array | BatchCollection | OperatorCollection
$values array | LdapTools\BatchModify\BatchCollection | LdapTools\Query\OperatorCollection
$dn string | null
리턴 array | LdapTools\BatchModify\BatchCollection | LdapTools\Query\OperatorCollection

getLdapObjectSchema() 공개 메소드

public getLdapObjectSchema ( )

getParameters() 공개 메소드

Get the array of additional possible parameters that have been set for the hydrator.
public getParameters ( ) : array
리턴 array

getSelectedAttributes() 공개 메소드

hydrateAllFromLdap() 공개 메소드

public hydrateAllFromLdap ( array $entries )
$entries array

hydrateFromLdap() 공개 메소드

public hydrateFromLdap ( array $entry )
$entry array

hydrateToLdap() 공개 메소드

public hydrateToLdap ( $attributes )

mergeDefaultAttributes() 보호된 메소드

Returns all of the attributes to be sent to LDAP after factoring in possible default schema values.
protected mergeDefaultAttributes ( array $attributes ) : array
$attributes array
리턴 array

resolveParameters() 보호된 메소드

Resolves all parameters within an array of attributes.
protected resolveParameters ( array $attributes ) : array
$attributes array
리턴 array

setAttributeFromLdap() 보호된 메소드

Given a specific attribute and value add it to the newly formed LDAP entry array.
protected setAttributeFromLdap ( array $entry, string $attribute, string | array $value ) : array
$entry array
$attribute string
$value string | array
리턴 array

setLdapConnection() 공개 메소드

public setLdapConnection ( LdapTools\Connection\LdapConnectionInterface $connection = null )
$connection LdapTools\Connection\LdapConnectionInterface

setLdapObjectSchema() 공개 메소드

public setLdapObjectSchema ( LdapObjectSchema $schema = null )
$schema LdapTools\Schema\LdapObjectSchema

setOperationType() 공개 메소드

public setOperationType ( $type )

setOrderBy() 공개 메소드

public setOrderBy ( array $orderBy )
$orderBy array

setParameter() 공개 메소드

Sets a parameter that can be used within an attribute value.
public setParameter ( string $name, string $value )
$name string
$value string

setSelectedAttributes() 공개 메소드

public setSelectedAttributes ( array $attributes )
$attributes array

validateAttributesToLdap() 보호된 메소드

Checks to make sure all required attributes are present.
protected validateAttributesToLdap ( array $attributes )
$attributes array

프로퍼티 상세

$connection 보호되어 있는 프로퍼티

protected LdapConnectionInterface,LdapTools\Connection|null $connection
리턴 LdapTools\Connection\LdapConnectionInterface | null

$orderBy 보호되어 있는 프로퍼티

The attributes to order by.
protected $orderBy

$parameters 보호되어 있는 프로퍼티

Default parameter values that have been set.
protected $parameters

$schema 보호되어 있는 프로퍼티

protected LdapObjectSchema,LdapTools\Schema $schema
리턴 LdapTools\Schema\LdapObjectSchema

$selectedAttributes 보호되어 있는 프로퍼티

The attributes selected for in the query.
protected $selectedAttributes

$type 보호되어 있는 프로퍼티

The operation type that is requesting this hydration process.
protected $type