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
파일 보기 프로젝트 열기: api-platform/core 1 사용 예제들

공개 메소드들

메소드 설명
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