PHP Class LdapTools\AttributeConverter\ConvertValueToDn

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

Méthodes publiques

Méthode Description
fromLdap ( $dn )
toLdap ( $value )

Méthodes protégées

Méthode 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 méthode

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
Résultat LdapTools\Query\LdapQueryBuilder

fromLdap() public méthode

public fromLdap ( $dn )

getAttributeFromLdapQuery() protected méthode

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
Résultat string The distinguished name.

getDnFromValue() protected méthode

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

getOptionsArray() protected méthode

Validates and retrieves the options array for the current attribute.
protected getOptionsArray ( ) : array
Résultat array

getQueryOrStatement() protected méthode

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

toLdap() public méthode

public toLdap ( $value )

validateCurrentAttribute() protected méthode

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