PHP Class ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\RangeFilter

Author: Lee Siong Chan ([email protected])
Inheritance: extends AbstractFilter
ファイルを表示 Open project: api-platform/core Class Usage Examples

Public Methods

Method Description
getDescription ( string $resourceClass ) : array

Protected Methods

Method Description
addWhere ( Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $alias, string $field, string $operator, string $value ) Adds the where clause according to the operator.
filterProperty ( string $property, $values, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null )
getFilterDescription ( string $fieldName, string $operator ) : array Gets filter description.

Method Details

addWhere() protected method

Adds the where clause according to the operator.
protected addWhere ( Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $alias, string $field, string $operator, string $value )
$queryBuilder Doctrine\ORM\QueryBuilder
$queryNameGenerator ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface
$alias string
$field string
$operator string
$value string

filterProperty() protected method

protected filterProperty ( string $property, $values, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null )
$property string
$queryBuilder Doctrine\ORM\QueryBuilder
$queryNameGenerator ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface
$resourceClass string
$operationName string

getDescription() public method

public getDescription ( string $resourceClass ) : array
$resourceClass string
return array

getFilterDescription() protected method

Gets filter description.
protected getFilterDescription ( string $fieldName, string $operator ) : array
$fieldName string
$operator string
return array