ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
class.ilLSLocatorGUI.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
use
ILIAS\UI\Factory
;
22
use
ILIAS\UI\Component\Component
;
23
27
class
ilLSLocatorGUI
28
{
29
protected
LSUrlBuilder
$url_builder
;
30
protected
Factory
$ui_factory
;
31
protected
array
$items
;
32
33
public
function
__construct
(
LSUrlBuilder
$url_builder
,
Factory
$ui_factory
)
34
{
35
$this->url_builder =
$url_builder
;
36
$this->ui_factory =
$ui_factory
;
37
}
38
39
public
function
withItems
(array
$items
):
ilLSLocatorGUI
40
{
41
$clone = clone $this;
42
$clone->items =
$items
;
43
return
$clone;
44
}
45
46
public
function
getComponent
():
Component
47
{
48
$crumbs = array_map(
49
function
($item) {
50
return
$this->ui_factory->link()->
standard
(
51
$item[
'label'
],
52
$this->url_builder->getHref($item[
'command'
], $item[
'parameter'
])
53
);
54
},
55
$this->items
56
);
57
return
$this->ui_factory->breadcrumbs($crumbs);
58
}
59
}
LSUrlBuilder
Definition:
LSUrlBuilder.php:24
ilLSLocatorGUI
GUI for Locator element.
Definition:
class.ilLSLocatorGUI.php:28
ilLSLocatorGUI\__construct
__construct(LSUrlBuilder $url_builder, Factory $ui_factory)
Definition:
class.ilLSLocatorGUI.php:33
ilLSLocatorGUI\$url_builder
LSUrlBuilder $url_builder
Definition:
class.ilLSLocatorGUI.php:29
ilLSLocatorGUI\getComponent
getComponent()
Definition:
class.ilLSLocatorGUI.php:46
ilLSLocatorGUI\$ui_factory
Factory $ui_factory
Definition:
class.ilLSLocatorGUI.php:30
ilLSLocatorGUI\withItems
withItems(array $items)
Definition:
class.ilLSLocatorGUI.php:39
ilLSLocatorGUI\$items
array $items
Definition:
class.ilLSLocatorGUI.php:31
ILIAS\UI\Component\Component
A component is the most general form of an entity in the UI.
Definition:
Component.php:28
ILIAS\UI\Factory
This is how the factory for UI elements looks.
Definition:
Factory.php:38
ILIAS\UI\Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\UI\examples\MainControls\Slate\Notification\standard
standard()
This is an example, of how the Notification Slate is generated by assigning Notification Items to it.
Definition:
standard.php:16
Modules
LearningSequence
classes
Player
class.ilLSLocatorGUI.php
Generated on Sun Nov 2 2025 22:01:14 for ILIAS by
1.9.4 (using
Doxyfile
)