PHP Трейт LdapTools\Utilities\ConverterUtilitiesTrait

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

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

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