Pager
in package
Pager
Table of Contents
- $offset : int
- $page : int
- $perPage : int
- __construct() : mixed
- Pager constructor.
- create() : Pager
- Named constructor of pager.
- createCustom() : Pager
- Named constructor of pager.
- offset() : int
- Returns the offset.
- page() : int
- Returns the current page.
- perPage() : int
- Returns the items count per page.
Properties
$offset
protected
int
$offset
$page
protected
int
$page
$perPage
protected
int
$perPage
Methods
__construct()
Pager constructor.
public
__construct(IntType $page, IntType $perPage) : mixed
Parameters
Return values
mixed —create()
Named constructor of pager.
public
static create(int $page, int $perPage) : Pager
Parameters
- $page : int
-
Current page.
- $perPage : int
-
Items per page.
Tags
Return values
Pager —New instance.
createCustom()
Named constructor of pager.
public
static createCustom(mixed $offset, mixed $limit) : Pager
Parameters
- $offset : mixed
- $limit : mixed
Tags
Return values
Pager —New instance.
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