ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
8 
9 function base()
10 {
11  global $DIC;
12  $f = $DIC->ui()->factory();
13  $r = $DIC->ui()->renderer();
14 
15  $pagination = $f->input()->viewControl()->pagination()
16  ->withTotalCount(932)
17  ->withValue([Pagination::FNAME_OFFSET => 31, Pagination::FNAME_LIMIT => 10])
18  ;
19 
20  //view this in a ViewControlContainer with active request
21  $vc_container = $f->input()->container()->viewControl()->standard([$pagination])
22  ->withRequest($DIC->http()->request());
23 
24  return $r->render([
25  $f->legacy('<pre>' . print_r($vc_container->getData(), true) . '</pre>'),
26  $f->divider()->horizontal(),
27  $vc_container
28  ]);
29 }
global $DIC
Definition: feed.php:28