3 declare(strict_types=1);
13 $f = $DIC->ui()->factory();
14 $r = $DIC->ui()->renderer();
16 $request = $DIC->http()->request();
19 $f->input()->viewControl()->pagination()
20 ->withAdditionalTransformation(
22 fn ($v) => [
'vc_range' => $v]
28 $f->input()->viewControl()->sortation([
29 'Field 1, ascending' =>
new Order(
'field1',
'ASC'),
30 'Field 1, descending' =>
new Order(
'field1',
'DESC'),
31 'Field 2, descending' =>
new Order(
'field2',
'ASC')
33 ->withAdditionalTransformation(
35 fn ($v) => [
'vc_sortation' => $v]
40 $f->input()->viewControl()->fieldSelection([
43 ],
'shown columns',
'apply')
44 ->withAdditionalTransformation(
46 fn ($v) => [
'vc_columns' => $v]
52 $vc_container =
$f->input()->container()->viewControl()->standard($vcs)
53 ->withAdditionalTransformation(
55 fn ($v) => array_filter(array_values($v)) === [] ? null : array_merge(...array_values($v))
58 ->withRequest($request);
61 $f->legacy(
'<pre>' . print_r($vc_container->getData(),
true) .
'</pre>'),
62 $f->divider()->horizontal(),
Both the subject and the direction need to be specified when expressing an order. ...
Refinery Factory $refinery