PHP Class LazyRecord\CollectionPager

Datei anzeigen Open project: corneltek/lazyrecord

Public Properties

Property Type Description
$currentPage * current page number, start from 1
$dataArray * data array
$perPage * size of per page
$totalPages * size of pages

Public Methods

Method Description
__construct ( array $dataArray, $page = 1, $pagenum = 10 )
calculate ( )
getNextPage ( )
getOffset ( )
getPreviousPage ( )
hasNextPage ( )
hasPreviousPage ( )
items ( )
next ( )
pages ( )
previous ( )
setPage ( integer $num )
setPerPage ( integer $num )

Method Details

__construct() public method

public __construct ( array $dataArray, $page = 1, $pagenum = 10 )
$dataArray array

calculate() public method

public calculate ( )

getNextPage() public method

public getNextPage ( )

getOffset() public method

public getOffset ( )

getPreviousPage() public method

public getPreviousPage ( )

hasNextPage() public method

public hasNextPage ( )

hasPreviousPage() public method

public hasPreviousPage ( )

items() public method

public items ( )

next() public method

public next ( )

pages() public method

public pages ( )

previous() public method

public previous ( )

setPage() public method

public setPage ( integer $num )
$num integer

setPerPage() public method

public setPerPage ( integer $num )
$num integer

Property Details

$currentPage public_oe property

* current page number, start from 1
public $currentPage

$dataArray public_oe property

* data array
public $dataArray

$perPage public_oe property

* size of per page
public $perPage

$totalPages public_oe property

* size of pages
public $totalPages