Reference
C
Class

ApiPlatform\Doctrine\Orm\Paginator

Decorates the Doctrine ORM paginator.

class ApiPlatform\Doctrine\Orm\Paginator extends ApiPlatform\Doctrine\Orm\AbstractPaginator implements IteratorAggregate, `<a href="/docs/reference/State/Pagination/PartialPaginatorInterface">ApiPlatform\State\Pagination\PartialPaginatorInterface</a>`, Traversable, Countable, `<a href="/docs/reference/State/Pagination/PaginatorInterface">ApiPlatform\State\Pagination\PaginatorInterface</a>`, `<a href="/docs/reference/Doctrine/Orm/QueryAwareInterface">ApiPlatform\Doctrine\Orm\QueryAwareInterface</a>`
{
    public getLastPage(): float
    public getTotalItems(): float
    public getQuery(): Doctrine\ORM\Query
    public __construct(Doctrine\ORM\Tools\Pagination\Paginator $paginator)
    public getCurrentPage(): float
    public getItemsPerPage(): float
    public getIterator(): Traversable
    public count(): int
}
class ApiPlatform\Doctrine\Orm\Paginator extends ApiPlatform\Doctrine\Orm\AbstractPaginator implements IteratorAggregate, `<a href="/docs/reference/State/Pagination/PartialPaginatorInterface">ApiPlatform\State\Pagination\PartialPaginatorInterface</a>`, Traversable, Countable, `<a href="/docs/reference/State/Pagination/PaginatorInterface">ApiPlatform\State\Pagination\PaginatorInterface</a>`, `<a href="/docs/reference/Doctrine/Orm/QueryAwareInterface">ApiPlatform\Doctrine\Orm\QueryAwareInterface</a>`
{
    public getLastPage(): float
    public getTotalItems(): float
    public getQuery(): Doctrine\ORM\Query
    public __construct(Doctrine\ORM\Tools\Pagination\Paginator $paginator)
    public getCurrentPage(): float
    public getItemsPerPage(): float
    public getIterator(): Traversable
    public count(): int
}

Properties

paginator

Doctrine\ORM\Tools\Pagination\Paginator $paginator
Doctrine\ORM\Tools\Pagination\Paginator $paginator

iterator

Traversable|array $iterator
Traversable|array $iterator

firstResult

int $firstResult
int $firstResult

maxResults

int $maxResults
int $maxResults

Methods

getLastPage

Gets last page.

public getLastPage(): float
public getLastPage(): float

Returns

float

getTotalItems

Gets the number of items in the whole collection.

public getTotalItems(): float
public getTotalItems(): float

Returns

float

getQuery

Gets the Query object that will actually be executed.This should allow configuring options which could only be set on the Query object itself.

public getQuery(): Doctrine\ORM\Query
public getQuery(): Doctrine\ORM\Query

Returns

Doctrine\ORM\Query

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop