ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
no_pages.php
Go to the documentation of this file.
1 <?php
2 
3 function no_pages()
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 
18  return $renderer->render($pagination)
19  . '<hr>'
20  . $renderer->render($pagination_onepage)
21  . '<hr>'
22  . $renderer->render($pagination_limited)
23  ;
24 }
$DIC
Definition: xapitoken.php:46
$url
no_pages()
Definition: no_pages.php:3
$factory
Definition: metadata.php:58