ILIAS  release_7 Revision v7.30-3-g800a261c036
no_pages.php File Reference

Go to the source code of this file.

Functions

 no_pages ()
 

Function Documentation

◆ no_pages()

no_pages ( )

Definition at line 3 of file no_pages.php.

4{
5 global $DIC;
6 $factory = $DIC->ui()->factory();
7 $renderer = $DIC->ui()->renderer();
8 $url = $DIC->http()->request()->getRequestTarget();
9
10 $pagination = $factory->viewControl()->pagination()
11 ->withPageSize(10)
12 ->withTotalEntries(0);
13
14 $pagination_onepage = $pagination->withTotalEntries(9);
15 $pagination_limited = $pagination->withMaxPaginationButtons(5);
16
17 return $renderer->render($pagination)
18 . '<hr>'
19 . $renderer->render($pagination_onepage)
20 . '<hr>'
21 . $renderer->render($pagination_limited)
22 ;
23}
global $DIC
Definition: goto.php:24
$factory
Definition: metadata.php:58
$url

References $DIC, $factory, and $url.