ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
no_pages.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
10 function no_pages()
11 {
12  global $DIC;
13  $factory = $DIC->ui()->factory();
14  $renderer = $DIC->ui()->renderer();
15  $url = $DIC->http()->request()->getRequestTarget();
16 
17  $pagination = $factory->viewControl()->pagination()
18  ->withPageSize(10)
19  ->withTotalEntries(10);
20 
21  return $renderer->render($pagination);
22 }
global $DIC
Definition: feed.php:28
$url
Definition: ltiregstart.php:35
no_pages()
A Pagination with one page only will render as empty string.
Definition: no_pages.php:10