PHP 트레잇 LdapTools\Utilities\ConverterUtilitiesTrait

저자: Chad Sikorra ([email protected])
파일 보기 프로젝트 열기: ldaptools/ldaptools

공개 메소드들

메소드 설명
getAttribute ( ) : string
getBatch ( ) : Batch | null
getDn ( ) : string | null
getLastValue ( ) : mixed
getLdapConnection ( ) : LdapTools\Connection\LdapConnectionInterface | null
getOperationType ( ) : integer
setLastValue ( $value )

보호된 메소드들

메소드 설명
getArrayValue ( array $options, string $key ) Get the value of an array key in a case-insensitive way.
getCurrentLdapAttributeValue ( string $attribute ) : array | string | null This can be called to retrieve the current value of an attribute from LDAP.
modifyMultivaluedAttribute ( array $values, array $newValues ) : array Modifies a multivalued attribute array based off the original values, the new values, and the modification type.
setDefaultLastValue ( string $attribute, mixed $default ) Specify an attribute to query to set as the last value. If that is not found, have it set the value specified by whatever you pass to $default.
validateCurrentAttribute ( array $options ) If the current attribute does not exist in the array, then throw an error.

메소드 상세

getArrayValue() 보호된 메소드

Get the value of an array key in a case-insensitive way.
protected getArrayValue ( array $options, string $key )
$options array
$key string

getAttribute() 추상적인 공개 메소드

abstract public getAttribute ( ) : string
리턴 string

getBatch() 추상적인 공개 메소드

abstract public getBatch ( ) : Batch | null
리턴 LdapTools\BatchModify\Batch | null

getCurrentLdapAttributeValue() 보호된 메소드

This can be called to retrieve the current value of an attribute from LDAP.
protected getCurrentLdapAttributeValue ( string $attribute ) : array | string | null
$attribute string The attribute name to query for a value from the converter context
리턴 array | string | null

getDn() 추상적인 공개 메소드

abstract public getDn ( ) : string | null
리턴 string | null

getLastValue() 추상적인 공개 메소드

abstract public getLastValue ( ) : mixed
리턴 mixed

getLdapConnection() 추상적인 공개 메소드

abstract public getLdapConnection ( ) : LdapTools\Connection\LdapConnectionInterface | null
리턴 LdapTools\Connection\LdapConnectionInterface | null

getOperationType() 추상적인 공개 메소드

abstract public getOperationType ( ) : integer
리턴 integer

modifyMultivaluedAttribute() 보호된 메소드

Modifies a multivalued attribute array based off the original values, the new values, and the modification type.
protected modifyMultivaluedAttribute ( array $values, array $newValues ) : array
$values array
$newValues array
리턴 array

setDefaultLastValue() 보호된 메소드

Specify an attribute to query to set as the last value. If that is not found, have it set the value specified by whatever you pass to $default.
protected setDefaultLastValue ( string $attribute, mixed $default )
$attribute string
$default mixed

setLastValue() 추상적인 공개 메소드

abstract public setLastValue ( $value )

validateCurrentAttribute() 보호된 메소드

If the current attribute does not exist in the array, then throw an error.
protected validateCurrentAttribute ( array $options )
$options array