ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
small.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\ViewControl\Sortation
;
22
34
function
small
()
35
{
36
//Loading factories
37
global
$DIC
;
38
$f
=
$DIC
->ui()->factory();
39
$renderer
=
$DIC
->ui()->renderer();
40
41
$options = array(
42
'default_option'
=>
'Default Ordering'
,
43
'latest'
=>
'Most Recent Ordering'
,
44
'oldest'
=>
'Oldest Ordering'
45
);
46
47
//Hide the label
48
$s =
$f
->viewControl()->sortation($options,
'oldest'
)
49
->withTargetURL(
$DIC
->http()->request()->getRequestTarget(),
'sortation'
);
50
51
$item =
$f
->item()->standard(
"See the Viewcontrol in a toolbar"
)
52
->withDescription(
"When space is limited, the label will be omitted."
);
53
return
$renderer
->render(
54
$f
->panel()->standard(
"Small space "
, [$item])
55
->withViewControls([$s])
56
);
57
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\ViewControl\Sortation
Definition:
_Base.php:21
ILIAS\UI\examples\ViewControl\Sortation\small
small()
Definition:
small.php:34
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
ViewControl
Sortation
small.php
Generated on Sat Oct 18 2025 23:04:41 for ILIAS by
1.9.4 (using
Doxyfile
)