PHP 클래스 LdapTools\Hydrator\OperationHydrator

상속: extends ArrayHydrator, use trait HydrateQueryTrait
파일 보기 프로젝트 열기: ldaptools/ldaptools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$alias string The current alias for the context of a query operation.
$operation LdapTools\Operation\LdapOperationInterface

공개 메소드들

메소드 설명
hydrateToLdap ( $operation, $dn = null )
setAlias ( null | string $alias ) Set the current alias that the operation is targeting (in the context of a query operation).

보호된 메소드들

메소드 설명
configureValueResolver ( BaseValueResolver $valueResolver, $dn = null )
filterAttributeValues ( array $attributes ) : array Remove empty strings and null values from attribute value arrays. This prevents errors when saving to LDAP and these are present for some reason.
hydrateAddOperation ( AddOperation $operation )
hydrateModifyOperation ( BatchModifyOperation $operation ) : BatchModifyOperation
hydrateOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
hydrateQueryOperation ( QueryOperation $operation )
setDefaultParameters ( ) : array Set some default parameters based off the connection.
setDnToUse ( AddOperation $operation ) Builds the DN based off of the "name" attribute. The name attribute should be mapped to the "cn" attribute in pretty much all cases except for creating an OU object. Then the "name" attribute should be mapped to "ou".

메소드 상세

configureValueResolver() 보호된 메소드

protected configureValueResolver ( BaseValueResolver $valueResolver, $dn = null )
$valueResolver LdapTools\Resolver\BaseValueResolver

filterAttributeValues() 보호된 메소드

Remove empty strings and null values from attribute value arrays. This prevents errors when saving to LDAP and these are present for some reason.
protected filterAttributeValues ( array $attributes ) : array
$attributes array
리턴 array

hydrateAddOperation() 보호된 메소드

protected hydrateAddOperation ( AddOperation $operation )
$operation LdapTools\Operation\AddOperation

hydrateModifyOperation() 보호된 메소드

protected hydrateModifyOperation ( BatchModifyOperation $operation ) : BatchModifyOperation
$operation LdapTools\Operation\BatchModifyOperation
리턴 LdapTools\Operation\BatchModifyOperation

hydrateOperation() 보호된 메소드

protected hydrateOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
$operation LdapTools\Operation\LdapOperationInterface
리턴 LdapTools\Operation\LdapOperationInterface

hydrateQueryOperation() 보호된 메소드

protected hydrateQueryOperation ( QueryOperation $operation )
$operation LdapTools\Operation\QueryOperation

hydrateToLdap() 공개 메소드

public hydrateToLdap ( $operation, $dn = null )

setAlias() 공개 메소드

Set the current alias that the operation is targeting (in the context of a query operation).
public setAlias ( null | string $alias )
$alias null | string

setDefaultParameters() 보호된 메소드

Set some default parameters based off the connection.
protected setDefaultParameters ( ) : array
리턴 array

setDnToUse() 보호된 메소드

Builds the DN based off of the "name" attribute. The name attribute should be mapped to the "cn" attribute in pretty much all cases except for creating an OU object. Then the "name" attribute should be mapped to "ou".
protected setDnToUse ( AddOperation $operation )
$operation LdapTools\Operation\AddOperation

프로퍼티 상세

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

The current alias for the context of a query operation.
protected string $alias
리턴 string

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

protected LdapOperationInterface,LdapTools\Operation $operation
리턴 LdapTools\Operation\LdapOperationInterface