PHP 클래스 ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter

The ordering is done in the same sequence as they are specified in the query, and for each property a direction value can be specified. For each property passed, if the resource does not have such property or if the direction value is different from "asc" or "desc" (case insensitive), the property is ignored.
저자: Kévin Dunglas ([email protected])
저자: Théo FIDRY ([email protected])
상속: extends AbstractFilter
파일 보기 프로젝트 열기: api-platform/core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$orderParameterName Keyword used to retrieve the value

공개 메소드들

메소드 설명
__construct ( Doctrine\Common\Persistence\ManagerRegistry $managerRegistry, Symfony\Component\HttpFoundation\RequestStack $requestStack, string $orderParameterName, Psr\Log\LoggerInterface $logger = null, array $properties = null )
getDescription ( string $resourceClass ) : array

보호된 메소드들

메소드 설명
extractProperties ( Request $request ) : array
filterProperty ( string $property, $direction, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null )

메소드 상세

__construct() 공개 메소드

public __construct ( Doctrine\Common\Persistence\ManagerRegistry $managerRegistry, Symfony\Component\HttpFoundation\RequestStack $requestStack, string $orderParameterName, Psr\Log\LoggerInterface $logger = null, array $properties = null )
$managerRegistry Doctrine\Common\Persistence\ManagerRegistry
$requestStack Symfony\Component\HttpFoundation\RequestStack
$orderParameterName string
$logger Psr\Log\LoggerInterface
$properties array

extractProperties() 보호된 메소드

protected extractProperties ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
리턴 array

filterProperty() 보호된 메소드

protected filterProperty ( string $property, $direction, 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

프로퍼티 상세

$orderParameterName 보호되어 있는 프로퍼티

Keyword used to retrieve the value
protected $orderParameterName