phpDocumentor

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

Methods

__construct()

Pager constructor.

public __construct(IntType $page, IntType $perPage) : mixed
Parameters
$page : IntType

Current page.

$perPage : IntType

Items per page.

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
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.

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