ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_one_page.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
8 
15 function with_one_page()
16 {
17  global $DIC;
18  $f = $DIC->ui()->factory();
19  $r = $DIC->ui()->renderer();
20 
21  $pagination = $f->input()->viewControl()->pagination()
22  ->withTotalCount(10)
23  ->withValue([Pagination::FNAME_OFFSET => 0, Pagination::FNAME_LIMIT => 10])
24  ;
25 
26  //view this in a ViewControlContainer with active request
27  $vc_container = $f->input()->container()->viewControl()->standard([$pagination])
28  ->withRequest($DIC->http()->request());
29 
30  return $r->render([
31  $f->legacy('<pre>' . print_r($vc_container->getData(), true) . '</pre>'),
32  $f->divider()->horizontal(),
33  $vc_container
34  ]);
35 }
with_one_page()
expected output: > ILIAS shows the rendered Component.
global $DIC
Definition: shib_login.php:25
$r