PHP Class LdapTools\Utilities\ArrayToOperator

Author: Chad Sikorra ([email protected])
Afficher le fichier Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Свойство Type Description
$filterBuilder LdapTools\Query\Builder\FilterBuilder
$filterMethods array
$opMap Maps some common operator names to their function names.
$schema LdapTools\Schema\LdapObjectSchema

Méthodes publiques

Méthode Description
__construct ( )
getOperatorForSchema ( LdapObjectSchema $schema, array $filter ) : BaseOperator Given a schema object and a filter array, construct the operator to be used for the schema.
toOperator ( array $filter ) : BaseOperator Given an array that represents different filter methods, return the operator representation of it.

Méthodes protégées

Méthode Description
getCategoryOperator ( $objectCategory ) : null | Comparison
getClassOperator ( array $objectClass ) : bAnd | null
getOperatorForArray ( array $filter, BaseOperator $operator = null ) : BaseOperator
getOperatorMethodName ( $name ) : mixed | null
parseFilterToOperators ( array $filter ) : BaseOperator[]
processOperatorAndArguments ( mixed $name, mixed $value ) : BaseOperator

Method Details

__construct() public méthode

public __construct ( )

getCategoryOperator() protected méthode

protected getCategoryOperator ( $objectCategory ) : null | Comparison
$objectCategory
Résultat null | LdapTools\Query\Operator\Comparison

getClassOperator() protected méthode

protected getClassOperator ( array $objectClass ) : bAnd | null
$objectClass array
Résultat LdapTools\Query\Operator\bAnd | null

getOperatorForArray() protected méthode

protected getOperatorForArray ( array $filter, BaseOperator $operator = null ) : BaseOperator
$filter array
$operator LdapTools\Query\Operator\BaseOperator
Résultat LdapTools\Query\Operator\BaseOperator

getOperatorForSchema() public méthode

Given a schema object and a filter array, construct the operator to be used for the schema.
public getOperatorForSchema ( LdapObjectSchema $schema, array $filter ) : BaseOperator
$schema LdapTools\Schema\LdapObjectSchema
$filter array
Résultat LdapTools\Query\Operator\BaseOperator

getOperatorMethodName() protected méthode

protected getOperatorMethodName ( $name ) : mixed | null
$name
Résultat mixed | null

parseFilterToOperators() protected méthode

protected parseFilterToOperators ( array $filter ) : BaseOperator[]
$filter array
Résultat LdapTools\Query\Operator\BaseOperator[]

processOperatorAndArguments() protected méthode

protected processOperatorAndArguments ( mixed $name, mixed $value ) : BaseOperator
$name mixed
$value mixed
Résultat LdapTools\Query\Operator\BaseOperator

toOperator() public méthode

Given an array that represents different filter methods, return the operator representation of it.
public toOperator ( array $filter ) : BaseOperator
$filter array
Résultat LdapTools\Query\Operator\BaseOperator

Property Details

$filterBuilder protected_oe property

protected FilterBuilder,LdapTools\Query\Builder $filterBuilder
Résultat LdapTools\Query\Builder\FilterBuilder

$filterMethods protected_oe property

protected array $filterMethods
Résultat array

$opMap protected_oe property

Maps some common operator names to their function names.
protected $opMap

$schema protected_oe property

protected LdapObjectSchema,LdapTools\Schema $schema
Résultat LdapTools\Schema\LdapObjectSchema