Reference
C
Class

ApiPlatform\Doctrine\Orm\AbstractPaginator

class ApiPlatform\Doctrine\Orm\AbstractPaginator implements IteratorAggregate, `<a href="/docs/reference/State/Pagination/PartialPaginatorInterface">ApiPlatform\State\Pagination\PartialPaginatorInterface</a>`, Traversable, Countable
{
    public __construct(Doctrine\ORM\Tools\Pagination\Paginator $paginator)
    public getCurrentPage(): float
    public getItemsPerPage(): float
    public getIterator(): Traversable
    public count(): int
}
class ApiPlatform\Doctrine\Orm\AbstractPaginator implements IteratorAggregate, `<a href="/docs/reference/State/Pagination/PartialPaginatorInterface">ApiPlatform\State\Pagination\PartialPaginatorInterface</a>`, Traversable, Countable
{
    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

__construct

public __construct(Doctrine\ORM\Tools\Pagination\Paginator $paginator)
public __construct(Doctrine\ORM\Tools\Pagination\Paginator $paginator)

Parameters

paginatorDoctrine\ORM\Tools\Pagination\Paginator

getCurrentPage

Gets the current page number.

public getCurrentPage(): float
public getCurrentPage(): float

Returns

float

getItemsPerPage

Gets the number of items by page.

public getItemsPerPage(): float
public getItemsPerPage(): float

Returns

float

getIterator

public getIterator(): Traversable
public getIterator(): Traversable

Returns

Traversable

count

public count(): int
public count(): int

Returns

int

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop