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

Автор: Kévin Dunglas ([email protected])
Наследование: extends AbstractFilter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$iriConverter
$propertyAccessor

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

Метод Описание
__construct ( Doctrine\Common\Persistence\ManagerRegistry $managerRegistry, Symfony\Component\HttpFoundation\RequestStack $requestStack, ApiPlatform\Core\Api\IriConverterInterface $iriConverter, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null, Psr\Log\LoggerInterface $logger = null, array $properties = null )
getDescription ( string $resourceClass ) : array

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

Метод Описание
addWhereByStrategy ( string $strategy, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $alias, string $field, string $value, boolean $caseSensitive ) Adds where clause according to the strategy.
createWrapCase ( boolean $caseSensitive ) : Closure Creates a function that will wrap a Doctrine expression according to the specified case sensitivity.
filterProperty ( string $property, $value, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null )
getIdFromValue ( string $value ) : mixed Gets the ID from an IRI or a raw ID.
normalizeValues ( array $values ) : array Normalize the values array.

Приватные методы

Метод Описание
getType ( string $doctrineType ) : string Converts a Doctrine type in PHP type.

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

__construct() публичный Метод

public __construct ( Doctrine\Common\Persistence\ManagerRegistry $managerRegistry, Symfony\Component\HttpFoundation\RequestStack $requestStack, ApiPlatform\Core\Api\IriConverterInterface $iriConverter, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null, Psr\Log\LoggerInterface $logger = null, array $properties = null )
$managerRegistry Doctrine\Common\Persistence\ManagerRegistry
$requestStack Symfony\Component\HttpFoundation\RequestStack
$iriConverter ApiPlatform\Core\Api\IriConverterInterface
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccessorInterface
$logger Psr\Log\LoggerInterface
$properties array

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

Adds where clause according to the strategy.
protected addWhereByStrategy ( string $strategy, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $alias, string $field, string $value, boolean $caseSensitive )
$strategy string
$queryBuilder Doctrine\ORM\QueryBuilder
$queryNameGenerator ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface
$alias string
$field string
$value string
$caseSensitive boolean

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

For example, "o.name" will get wrapped into "LOWER(o.name)" when $caseSensitive is false.
protected createWrapCase ( boolean $caseSensitive ) : Closure
$caseSensitive boolean
Результат Closure

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

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

Gets the ID from an IRI or a raw ID.
protected getIdFromValue ( string $value ) : mixed
$value string
Результат mixed

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

Normalize the values array.
protected normalizeValues ( array $values ) : array
$values array
Результат array

Описание свойств

$iriConverter защищенное свойство

protected $iriConverter

$propertyAccessor защищенное свойство

protected $propertyAccessor