ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
31 function base()
32 {
33  global $DIC;
34  $f = $DIC->ui()->factory();
35  $r = $DIC->ui()->renderer();
36 
37  $pagination = $f->input()->viewControl()->pagination()
38  ->withTotalCount(932)
39  ->withValue([Pagination::FNAME_OFFSET => 31, 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:22
base()
expected output: > ILIAS shows the rendered Component.
Definition: base.php:31
$r