final class PaginationState (View source)

Methods

__construct(int $currentPage, int $perPage, int $total, string $pageName, string $basePath, array $query = [])
int
int
int
int
int
total()
int
string
string
int
offset()
int
int
int
bool
bool
bool
bool
bool
bool
int
int
int
int
string
url(int $page)
string
array
pages(int $maxPages = 5)
array

Details

__construct

__construct(int $currentPage, int $perPage, int $total, string $pageName, string $basePath, array $query = [])

No description

Parameters

int $currentPage
int $perPage
int $total
string $pageName
string $basePath
array $query

currentPage

int currentPage()

No description

Return Value

int

perPage

int perPage()

No description

Return Value

int

total

int total()

No description

Return Value

int

pageName

string pageName()

No description

Return Value

string

offset

int offset()

No description

Return Value

int

lastPage

int lastPage()

No description

Return Value

int

hasPages

bool hasPages()

No description

Return Value

bool

hasPrev

bool hasPrev()

No description

Return Value

bool

hasNext

bool hasNext()

No description

Return Value

bool

prevPage

int prevPage()

No description

Return Value

int

nextPage

int nextPage()

No description

Return Value

int

url

string url(int $page)

No description

Parameters

int $page

Return Value

string

pages

array pages(int $maxPages = 5)

No description

Parameters

int $maxPages

Return Value

array