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

Filters collection by equality of numeric properties. For each property passed, if the resource does not have such property or if the value is not numeric, the property is ignored.
Author: Amrouche Hamza ([email protected])
Author: Teoh Han Hui ([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
filterProperty ( string $property, $value, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null )
isNumericField ( string $property, string $resourceClass ) : boolean Determines whether the given property refers to a numeric field.

Private Methods

Méthode Description
getType ( string $doctrineType ) : string Gets the PHP type corresponding to this Doctrine type.

Method Details

filterProperty() protected méthode

protected filterProperty ( string $property, $value, 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

isNumericField() protected méthode

Determines whether the given property refers to a numeric field.
protected isNumericField ( string $property, string $resourceClass ) : boolean
$property string
$resourceClass string
Résultat boolean