Go to the source code of this file.
◆ _Base()
Definition at line 4 of file _Base.php.
5{
6
9 $renderer =
$DIC->ui()->renderer();
10
11
12 $options = [
13 'default_option' => 'Default Ordering',
14 'latest' => 'Most Recent Ordering',
15 'oldest' => 'Oldest Ordering'
16 ];
17
18
19 $select_option = 'default_option';
20 if (
$_GET[
'sortation']) {
21 $select_option =
$_GET[
'sortation'];
22 }
23
24
25 $s =
$f->viewControl()->sortation($options)
26 ->withTargetURL(
$DIC->http()->request()->getRequestTarget(),
'sortation')
27 ->withLabel($options[$select_option]);
28
29
30 return $renderer->render($s);
31}
References $_GET, $DIC, and Vendor\Package\$f.