PHP Класс ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter

Filters collection on equality of boolean properties. The value is specified as one of ( "true" | "false" | "1" | "0" ) in the query. For each property passed, if the resource does not have such property or if the value is not one of ( "true" | "false" | "1" | "0" ) the property is ignored.
Автор: Amrouche Hamza ([email protected])
Автор: Teoh Han Hui ([email protected])
Наследование: extends AbstractFilter
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getDescription ( string $resourceClass ) : array

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

Метод Описание
filterProperty ( string $property, $value, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null )
isBooleanField ( string $property, string $resourceClass ) : boolean Determines whether the given property refers to a boolean field.

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

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() публичный Метод

public getDescription ( string $resourceClass ) : array
$resourceClass string
Результат array

isBooleanField() защищенный Метод

Determines whether the given property refers to a boolean field.
protected isBooleanField ( string $property, string $resourceClass ) : boolean
$property string
$resourceClass string
Результат boolean