PHP Class ManaPHP\Paginator

Inheritance: extends Component, implements manaphp\PaginatorInterface
Datei anzeigen 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_oe property

public int $count
return integer

$items public_oe property

public array $items
return array

$next public_oe property

public int $next
return integer

$numberOfPages public_oe property

public $numberOfPages

$page public_oe property

public int $page
return integer

$pages public_oe property

public int $pages
return integer

$prev public_oe property

public int $prev
return integer

$size public_oe property

public int $size
return integer