PHP Класс LdapTools\AttributeConverter\ConvertValueToDn

Автор: Chad Sikorra ([email protected])
Наследование: implements LdapTools\AttributeConverter\AttributeConverterInterface, use trait AttributeConverterTrait, use trait LdapTools\Utilities\ConverterUtilitiesTrait
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
fromLdap ( $dn )
toLdap ( $value )

Защищенные методы

Метод Описание
buildLdapQuery ( array $filter, boolean $isOrFilter, string $toSelect ) : LdapQueryBuilder Builds the part the of the query with the specific object class/value to search on.
getAttributeFromLdapQuery ( string $value, string $toSelect ) : string Attempt to look-up the attribute from a LDAP query based on the value.
getDnFromValue ( string $value ) : string Given a value try to determine how to get its full distinguished name.
getOptionsArray ( ) : array Validates and retrieves the options array for the current attribute.
getQueryOrStatement ( LdapQueryBuilder $query, string $value ) : bOr
validateCurrentAttribute ( ) Make sure that the current attribute has actually been defined.

Описание методов

buildLdapQuery() защищенный метод

Builds the part the of the query with the specific object class/value to search on.
protected buildLdapQuery ( array $filter, boolean $isOrFilter, string $toSelect ) : LdapQueryBuilder
$filter array
$isOrFilter boolean
$toSelect string
Результат LdapTools\Query\LdapQueryBuilder

fromLdap() публичный метод

public fromLdap ( $dn )

getAttributeFromLdapQuery() защищенный метод

Attempt to look-up the attribute from a LDAP query based on the value.
protected getAttributeFromLdapQuery ( string $value, string $toSelect ) : string
$value string
$toSelect string
Результат string The distinguished name.

getDnFromValue() защищенный метод

Given a value try to determine how to get its full distinguished name.
protected getDnFromValue ( string $value ) : string
$value string
Результат string $dn

getOptionsArray() защищенный метод

Validates and retrieves the options array for the current attribute.
protected getOptionsArray ( ) : array
Результат array

getQueryOrStatement() защищенный метод

protected getQueryOrStatement ( LdapQueryBuilder $query, string $value ) : bOr
$query LdapTools\Query\LdapQueryBuilder
$value string
Результат LdapTools\Query\Operator\bOr

toLdap() публичный метод

public toLdap ( $value )

validateCurrentAttribute() защищенный метод

Make sure that the current attribute has actually been defined.
protected validateCurrentAttribute ( )