PHP Класс 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.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Защищенные методы
Метод |
Описание |
|
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. |
|
Приватные методы
Метод |
Описание |
|
getType ( string $doctrineType ) : string |
Gets the PHP type corresponding to this Doctrine type. |
|
Описание методов
filterProperty()
защищенный метод
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()
публичный метод
isNumericField()
защищенный метод
Determines whether the given property refers to a numeric field.