PHP Класс LdapTools\Utilities\ArrayToOperator

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

Защищенные свойства (Protected)

Свойство Тип Описание
$filterBuilder LdapTools\Query\Builder\FilterBuilder
$filterMethods array
$opMap Maps some common operator names to their function names.
$schema LdapTools\Schema\LdapObjectSchema

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

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

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

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

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

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

public __construct ( )

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

protected getCategoryOperator ( $objectCategory ) : null | Comparison
$objectCategory
Результат null | LdapTools\Query\Operator\Comparison

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

protected getClassOperator ( array $objectClass ) : bAnd | null
$objectClass array
Результат LdapTools\Query\Operator\bAnd | null

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

protected getOperatorForArray ( array $filter, BaseOperator $operator = null ) : BaseOperator
$filter array
$operator LdapTools\Query\Operator\BaseOperator
Результат LdapTools\Query\Operator\BaseOperator

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

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
Результат LdapTools\Query\Operator\BaseOperator

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

protected getOperatorMethodName ( $name ) : mixed | null
$name
Результат mixed | null

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

protected parseFilterToOperators ( array $filter ) : BaseOperator[]
$filter array
Результат LdapTools\Query\Operator\BaseOperator[]

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

protected processOperatorAndArguments ( mixed $name, mixed $value ) : BaseOperator
$name mixed
$value mixed
Результат LdapTools\Query\Operator\BaseOperator

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

Given an array that represents different filter methods, return the operator representation of it.
public toOperator ( array $filter ) : BaseOperator
$filter array
Результат LdapTools\Query\Operator\BaseOperator

Описание свойств

$filterBuilder защищенное свойство

protected FilterBuilder,LdapTools\Query\Builder $filterBuilder
Результат LdapTools\Query\Builder\FilterBuilder

$filterMethods защищенное свойство

protected array $filterMethods
Результат array

$opMap защищенное свойство

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

$schema защищенное свойство

protected LdapObjectSchema,LdapTools\Schema $schema
Результат LdapTools\Schema\LdapObjectSchema