3 declare(strict_types=1);
23 $f = $DIC->ui()->factory();
24 $r = $DIC->ui()->renderer();
26 $request = $DIC->http()->request();
29 $f->input()->viewControl()->pagination()
30 ->withAdditionalTransformation(
32 fn($v) => [
'vc_range' => $v]
36 ->withValue([Pagination::FNAME_OFFSET => 0, Pagination::FNAME_LIMIT => 50]),
38 $f->input()->viewControl()->sortation([
39 'Field 1, ascending' =>
new Order(
'field1',
'ASC'),
40 'Field 1, descending' =>
new Order(
'field1',
'DESC'),
41 'Field 2, descending' =>
new Order(
'field2',
'ASC')
43 ->withAdditionalTransformation(
45 fn($v) => [
'vc_sortation' => $v]
50 $f->input()->viewControl()->fieldSelection([
53 ],
'shown columns',
'apply')
54 ->withAdditionalTransformation(
56 fn($v) => [
'vc_columns' => $v]
62 $vc_container =
$f->input()->container()->viewControl()->standard($vcs)
63 ->withAdditionalTransformation(
65 fn($v) => array_filter(array_values($v)) === [] ? null : array_merge(...array_values($v))
68 ->withRequest($request);
71 $f->legacy(
'<pre>' . print_r($vc_container->getData(),
true) .
'</pre>'),
72 $f->divider()->horizontal(),
Both the subject and the direction need to be specified when expressing an order. ...