PHP Trait Voodoo\Core\Controller\TPagination

Show file Open project: voodoophp/voodoo

Public Methods

Method Description
issetPagination ( ) : boolean Return if the pagination is set
pagination ( integer $totalItems = null, integer $itemsPerPage = null, $navigationSize = null ) : Voodoo\Paginator
setPagination ( integer $totalItems = null, integer $itemsPerPage = null, $navigationSize = null ) : Voodoo\Paginator Pagination setter
setPaginationFromModel ( Model &$model, type $itemsPerPage = null, type $navigationSize = null ) : Voodoo\Paginator Pagination Setter to paginate from Voodoo\Core\Model object from Voodoo\VoodOrm It will assign the start and limit fof the pagination

Method Details

issetPagination() public method

Return if the pagination is set
public issetPagination ( ) : boolean
return boolean

pagination() public method

public pagination ( integer $totalItems = null, integer $itemsPerPage = null, $navigationSize = null ) : Voodoo\Paginator
$totalItems integer - Set the total items
$itemsPerPage integer - Total items per page
return Voodoo\Paginator

setPagination() public method

Pagination setter
public setPagination ( integer $totalItems = null, integer $itemsPerPage = null, $navigationSize = null ) : Voodoo\Paginator
$totalItems integer - Set the total items
$itemsPerPage integer - Total items per page
return Voodoo\Paginator

setPaginationFromModel() public method

Pagination Setter to paginate from Voodoo\Core\Model object from Voodoo\VoodOrm It will assign the start and limit fof the pagination
public setPaginationFromModel ( Model &$model, type $itemsPerPage = null, type $navigationSize = null ) : Voodoo\Paginator
$model Voodoo\Core\Model
$itemsPerPage type
$navigationSize type
return Voodoo\Paginator