Guides
Tutorials
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
}
Doctrine\ORM\Tools\Pagination\Paginator $paginator
Doctrine\ORM\Tools\Pagination\Paginator $paginator
Traversable|array $iterator
Traversable|array $iterator
int $firstResult
int $firstResult
int $maxResults
int $maxResults
Gets last page.
public getLastPage(): float
public getLastPage(): float
float
Gets the number of items in the whole collection.
public getTotalItems(): float
public getTotalItems(): float
float
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
Doctrine\ORM\Query