phpDocumentor

ExtendedInformationPager extends Pager
in package

ExtendedInformationPager

Table of Contents

$offset  : int
$page  : int
$pageParameter  : string
$perPage  : int
$totalItemCount  : int
__construct()  : mixed
ExtendedInformationPager constructor.
create()  : Pager
Named constructor of pager.
createCustom()  : Pager
Named constructor of pager.
createExtendedInformationPager()  : ExtendedInformationPager
Named constructor of extended information pager.
getPages()  : array<string|int, mixed>
Get the all pages as an array with the following information: [ [ 'page' => 1, 'text' => 1, 'title' => 1 ] ]
highestOnPage()  : int
Gets the highest item of the current page.
isFirstPage()  : bool
Returns true if the current page is the first page.
isLastPage()  : bool
Returns true if the current page is the last page.
lowestOnPage()  : int
Gets the lowest item of the current page.
offset()  : int
Returns the offset.
page()  : int
Returns the current page.
pageParameter()  : string
Gets the name of the page parameter.
perPage()  : int
Returns the items count per page.
totalItemCount()  : int
Gets the total number of items.
totalPageCount()  : int
Gets the total number of pages.

Properties

Methods

create()

Named constructor of pager.

public static create(int $page, int $perPage) : Pager
Parameters
$page : int

Current page.

$perPage : int

Items per page.

Tags
throws
InvalidArgumentException
Return values
Pager

New instance.

createCustom()

Named constructor of pager.

public static createCustom(mixed $offset, mixed $limit) : Pager
Parameters
$offset : mixed
$limit : mixed
Tags
throws
InvalidArgumentException
Return values
Pager

New instance.

createExtendedInformationPager()

Named constructor of extended information pager.

public static createExtendedInformationPager(int $page, int $perPage, int $totalItemCount, string $pageParameter) : ExtendedInformationPager
Parameters
$page : int

Current page.

$perPage : int

Items per page.

$totalItemCount : int

Total number of items.

$pageParameter : string

The name of the page parameter

Tags
throws
InvalidArgumentException
Return values
ExtendedInformationPager

New instance.

getPages()

Get the all pages as an array with the following information: [ [ 'page' => 1, 'text' => 1, 'title' => 1 ] ]

public getPages() : array<string|int, mixed>
Return values
array<string|int, mixed>

offset()

Returns the offset.

public offset() : int
Return values
int

page()

Returns the current page.

public page() : int
Return values
int

perPage()

Returns the items count per page.

public perPage() : int
Return values
int

Search results