References PaginationOptions
Reference
C
Class

ApiPlatform\State\Pagination\PaginationOptions

class ApiPlatform\State\Pagination\PaginationOptions
{
    public __construct(bool $paginationEnabled, string $paginationPageParameterName, bool $clientItemsPerPage, string $itemsPerPageParameterName, bool $paginationClientEnabled, string $paginationClientEnabledParameterName, int $itemsPerPage, null|int $maximumItemsPerPage, bool $partialPaginationEnabled, bool $clientPartialPaginationEnabled, string $partialPaginationParameterName)
    public isPaginationEnabled(): bool
    public getPaginationPageParameterName(): string
    public getClientItemsPerPage(): bool
    public getItemsPerPageParameterName(): string
    public getPaginationClientEnabled(): bool
    public isPaginationClientEnabled(): bool
    public getPaginationClientEnabledParameterName(): string
    public getItemsPerPage(): int
    public getMaximumItemsPerPage(): int
    public isPartialPaginationEnabled(): bool
    public isClientPartialPaginationEnabled(): bool
    public getPartialPaginationParameterName(): string
}

Methods

__construct

public __construct(bool $paginationEnabled, string $paginationPageParameterName, bool $clientItemsPerPage, string $itemsPerPageParameterName, bool $paginationClientEnabled, string $paginationClientEnabledParameterName, int $itemsPerPage, null|int $maximumItemsPerPage, bool $partialPaginationEnabled, bool $clientPartialPaginationEnabled, string $partialPaginationParameterName)

Parameters

paginationEnabledbool
paginationPageParameterNamestring
clientItemsPerPagebool
itemsPerPageParameterNamestring
paginationClientEnabledbool
paginationClientEnabledParameterNamestring
itemsPerPageint
maximumItemsPerPageint
partialPaginationEnabledbool
clientPartialPaginationEnabledbool
partialPaginationParameterNamestring

isPaginationEnabled

public isPaginationEnabled(): bool

Returns

bool

getPaginationPageParameterName

public getPaginationPageParameterName(): string

Returns

string

getClientItemsPerPage

public getClientItemsPerPage(): bool

Returns

bool

getItemsPerPageParameterName

public getItemsPerPageParameterName(): string

Returns

string

getPaginationClientEnabled

public getPaginationClientEnabled(): bool

Returns

bool

isPaginationClientEnabled

public isPaginationClientEnabled(): bool

Returns

bool

getPaginationClientEnabledParameterName

public getPaginationClientEnabledParameterName(): string

Returns

string

getItemsPerPage

public getItemsPerPage(): int

Returns

int

getMaximumItemsPerPage

public getMaximumItemsPerPage(): int

Returns

int

isPartialPaginationEnabled

public isPartialPaginationEnabled(): bool

Returns

bool

isClientPartialPaginationEnabled

public isClientPartialPaginationEnabled(): bool

Returns

bool

getPartialPaginationParameterName

public getPartialPaginationParameterName(): string

Returns

string

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop