ILIAS  release_8 Revision v8.24
no_pages.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
7function no_pages()
8{
9 global $DIC;
10 $factory = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
12 $url = $DIC->http()->request()->getRequestTarget();
13
14 $pagination = $factory->viewControl()->pagination()
15 ->withPageSize(10)
16 ->withTotalEntries(0);
17
18 $pagination_onepage = $pagination->withTotalEntries(9);
19 $pagination_limited = $pagination->withMaxPaginationButtons(5);
20
21 return $renderer->render($pagination)
22 . '<hr>'
23 . $renderer->render($pagination_onepage)
24 . '<hr>'
25 . $renderer->render($pagination_limited)
26 ;
27}
global $DIC
Definition: feed.php:28
$factory
Definition: metadata.php:75
$url