19 declare(strict_types=1);
39 $f = $DIC->ui()->factory();
40 $r = $DIC->ui()->renderer();
42 $request = $DIC->http()->request();
45 $f->input()->viewControl()->pagination()
46 ->withAdditionalTransformation(
48 fn($v) => [
'vc_range' => $v]
52 ->withValue([Pagination::FNAME_OFFSET => 0, Pagination::FNAME_LIMIT => 50]),
54 $f->input()->viewControl()->sortation([
55 'Field 1, ascending' =>
new Order(
'field1',
'ASC'),
56 'Field 1, descending' =>
new Order(
'field1',
'DESC'),
57 'Field 2, descending' =>
new Order(
'field2',
'ASC')
59 ->withAdditionalTransformation(
61 fn($v) => [
'vc_sortation' => $v]
66 $f->input()->viewControl()->fieldSelection([
69 ],
'shown columns',
'apply')
70 ->withAdditionalTransformation(
72 fn($v) => [
'vc_columns' => $v]
76 $f->input()->viewControl()->mode([
78 'mode2' =>
'another mode' 80 ->withAdditionalTransformation(
82 fn($v) => [
'vc_mode' => $v]
88 $vc_container =
$f->input()->container()->viewControl()->standard($vcs)
89 ->withAdditionalTransformation(
91 fn($v) => array_filter(array_values($v)) === [] ?
null : array_merge(...array_values($v))
94 ->withRequest($request);
97 $f->legacy()->content(
'<pre>' . print_r($vc_container->getData(),
true) .
'</pre>'),
98 $f->divider()->horizontal(),
Both the subject and the direction need to be specified when expressing an order. ...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null