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

Author: Kévin Dunglas ([email protected])
Author: Théo FIDRY ([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, string $nullManagement = null ) Adds the where clause according to the chosen null management.
filterProperty ( string $property, $values, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null )
getFilterDescription ( string $property, string $period ) : array Gets filter description.
isDateField ( string $property, string $resourceClass ) : boolean Determines whether the given property refers to a date field.

Method Details

addWhere() protected méthode

Adds the where clause according to the chosen null management.
protected addWhere ( Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $alias, string $field, string $operator, string $value, string $nullManagement = null )
$queryBuilder Doctrine\ORM\QueryBuilder
$queryNameGenerator ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface
$alias string
$field string
$operator string
$value string
$nullManagement 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 $property, string $period ) : array
$property string
$period string
Résultat array

isDateField() protected méthode

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