3 declare(strict_types=1);
12 $renderer = $DIC->ui()->renderer();
16 $actions =
$factory->dropdown()->standard(array(
17 $factory->button()->shy(
"ILIAS",
"https://www.ilias.de"),
18 $factory->button()->shy(
"GitHub",
"https://www.github.com")
21 $legacy =
$factory->legacy(
"Legacy content");
23 $sort_options = array(
24 'internal_rating' =>
'Best',
25 'date_desc' =>
'Most Recent',
26 'date_asc' =>
'Oldest',
28 $sortation =
$factory->viewControl()->sortation($sort_options);
31 $url = $DIC->http()->request()->getRequestTarget();
33 $parameter_name =
'page';
39 $pagination =
$factory->viewControl()->pagination()
40 ->withTargetURL(
$url, $parameter_name)
41 ->withTotalEntries(98)
43 ->withCurrentPage($current_page);
45 $panel =
$factory->panel()->secondary()->legacy(
"panel title", $legacy)->withViewControls(array($sortation, $pagination))->withActions($actions);
47 return $renderer->render(
$panel);
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Refinery Factory $refinery