ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
base.php
Go to the documentation of this file.
1<?php
2
3function base()
4{
5 global $DIC;
6 $factory = $DIC->ui()->factory();
7 $renderer = $DIC->ui()->renderer();
8 $url = $DIC->http()->request()->getRequestTarget();
9
10 $parameter_name = 'page';
11 $current_page = (int) @$_GET[$parameter_name];
12
13 $pagination = $factory->viewControl()->pagination()
14 ->withTargetURL($url, $parameter_name)
15 ->withTotalEntries(98)
16 ->withPageSize(10)
17 ->withCurrentPage($current_page);
18
19 $start = $pagination->getOffset();
20 $stop = $start + $pagination->getPageLength();
21 $result = "entries $start to $stop";
22 return $renderer->render($pagination)
23 . '<hr>'
24 . $result;
25}
base()
Definition: base.php:4
$result
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
$factory
Definition: metadata.php:58
$url
$DIC
Definition: xapitoken.php:46