Pager

Pager

package

Default

Methods

Pager constructor.

__construct(\IntType $page, \IntType $perPage) 

Arguments

$page

\IntType

Current page.

$perPage

\IntType

Items per page.

Named constructor of pager.

create(integer $page, integer $perPage) : \Pager
static

Arguments

$page

integer

Current page.

$perPage

integer

Items per page.

Response

\Pager

New instance.

Returns the offset.

offset() : integer

Response

integer

Returns the current page.

page() : integer

Response

integer

Returns the items count per page.

perPage() : integer

Response

integer

Properties

page

page : integer
var

Type(s)

integer

perPage

perPage : integer
var

Type(s)

integer

offset

offset : integer
var

Type(s)

integer