ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_one_page.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
31function with_one_page()
32{
33 global $DIC;
34 $f = $DIC->ui()->factory();
35 $r = $DIC->ui()->renderer();
36
37 $pagination = $f->input()->viewControl()->pagination()
38 ->withTotalCount(3)
39 ->withValue([Pagination::FNAME_OFFSET => 0, Pagination::FNAME_LIMIT => 10])
40 ;
41
42 //view this in a ViewControlContainer with active request
43 $vc_container = $f->input()->container()->viewControl()->standard([$pagination])
44 ->withRequest($DIC->http()->request());
45
46 return $r->render([
47 $f->legacy()->content('<pre>' . print_r($vc_container->getData(), true) . '</pre>'),
48 $f->divider()->horizontal(),
49 $vc_container
50 ]);
51}
global $DIC
Definition: shib_login.php:26