PHP Class LdapTools\AttributeConverter\ConvertValueToDn

Author: Chad Sikorra ([email protected])
Inheritance: implements LdapTools\AttributeConverter\AttributeConverterInterface, use trait AttributeConverterTrait, use trait LdapTools\Utilities\ConverterUtilitiesTrait
Datei anzeigen Open project: ldaptools/ldaptools Class Usage Examples

Public Methods

Method Description
fromLdap ( $dn )
toLdap ( $value )

Protected Methods

Method Description
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.

Method Details

buildLdapQuery() protected method

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
return LdapTools\Query\LdapQueryBuilder

fromLdap() public method

public fromLdap ( $dn )

getAttributeFromLdapQuery() protected method

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
return string The distinguished name.

getDnFromValue() protected method

Given a value try to determine how to get its full distinguished name.
protected getDnFromValue ( string $value ) : string
$value string
return string $dn

getOptionsArray() protected method

Validates and retrieves the options array for the current attribute.
protected getOptionsArray ( ) : array
return array

getQueryOrStatement() protected method

protected getQueryOrStatement ( LdapQueryBuilder $query, string $value ) : bOr
$query LdapTools\Query\LdapQueryBuilder
$value string
return LdapTools\Query\Operator\bOr

toLdap() public method

public toLdap ( $value )

validateCurrentAttribute() protected method

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