ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
with_one_page.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
8 
9 function with_one_page()
10 {
11  global $DIC;
12  $f = $DIC->ui()->factory();
13  $r = $DIC->ui()->renderer();
14 
15  $pagination = $f->input()->viewControl()->pagination()
16  ->withTotalCount(10)
17  ->withValue([Pagination::FNAME_OFFSET => 0, 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