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

Author: Lee Siong Chan ([email protected])
Inheritance: extends AbstractFilter
Afficher le fichier Open project: api-platform/core Class Usage Examples

Méthodes publiques

Méthode Description
getDescription ( string $resourceClass ) : array

Méthodes protégées

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

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

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

public getDescription ( string $resourceClass ) : array
$resourceClass string
Résultat array

getFilterDescription() protected méthode

Gets filter description.
protected getFilterDescription ( string $fieldName, string $operator ) : array
$fieldName string
$operator string
Résultat array