PHP Class ManaPHP\Paginator

Inheritance: extends Component, implements manaphp\PaginatorInterface
Show file Open project: manaphp/manaphp

Public Properties

Property Type Description
$count integer
$items array
$next integer
$numberOfPages
$page integer
$pages integer
$prev integer
$size integer

Public Methods

Method Description
__toString ( )
paginate ( integer $count, integer $size, integer $page ) : static
renderAsArray ( false | string $itemsName = 'items' ) : array
renderAsHtml ( string $urlTemplate = null ) : string

Method Details

__toString() public method

public __toString ( )

paginate() public method

public paginate ( integer $count, integer $size, integer $page ) : static
$count integer
$size integer
$page integer
return static

renderAsArray() public method

public renderAsArray ( false | string $itemsName = 'items' ) : array
$itemsName false | string
return array

renderAsHtml() public method

public renderAsHtml ( string $urlTemplate = null ) : string
$urlTemplate string
return string

Property Details

$count public property

public int $count
return integer

$items public property

public array $items
return array

$next public property

public int $next
return integer

$numberOfPages public property

public $numberOfPages

$page public property

public int $page
return integer

$pages public property

public int $pages
return integer

$prev public property

public int $prev
return integer

$size public property

public int $size
return integer