mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +00:00
Add new BoundariesPager
This commit is contained in:
parent
2b4317d472
commit
e89e606b88
2 changed files with 140 additions and 5 deletions
|
@ -37,12 +37,12 @@ class Pager
|
|||
/**
|
||||
* @var integer
|
||||
*/
|
||||
private $itemsPerPage = 50;
|
||||
protected $itemsPerPage = 50;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $baseQueryString = '';
|
||||
protected $baseQueryString = '';
|
||||
|
||||
/**
|
||||
* Instantiates a new Pager with the base parameters.
|
||||
|
@ -154,11 +154,11 @@ class Pager
|
|||
*
|
||||
* $html = $pager->renderMinimal(count($items));
|
||||
*
|
||||
* @param integer $itemCount The number of displayed items on the page
|
||||
* @param int $itemCount The number of displayed items on the page
|
||||
* @return string HTML string of the pager
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function renderMinimal($itemCount)
|
||||
public function renderMinimal(int $itemCount)
|
||||
{
|
||||
$displayedItemCount = max(0, intval($itemCount));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue