ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilLSLocatorGUI Class Reference

GUI for Locator element. More...

+ Collaboration diagram for ilLSLocatorGUI:

Public Member Functions

 __construct (LSUrlBuilder $url_builder, Factory $ui_factory)
 
 withItems (array $items)
 
 getComponent ()
 

Protected Attributes

 $url_builder
 
 $items
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilLSLocatorGUI::__construct ( LSUrlBuilder  $url_builder,
Factory  $ui_factory 
)

Definition at line 26 of file class.ilLSLocatorGUI.php.

29 {
30 $this->url_builder = $url_builder;
31 $this->ui_factory = $ui_factory;
32 }

References $url_builder.

Member Function Documentation

◆ getComponent()

ilLSLocatorGUI::getComponent ( )

Definition at line 41 of file class.ilLSLocatorGUI.php.

41 : Component
42 {
43 $crumbs = array_map(
44 function ($item) {
45 return $this->ui_factory->link()->standard(
46 $item['label'],
47 $this->url_builder->getHref($item['command'], $item['parameter'])
48 );
49 },
51 );
52 return $this->ui_factory->breadcrumbs($crumbs);
53 }
A component is the most general form of an entity in the UI.
Definition: Component.php:14

References $items.

◆ withItems()

ilLSLocatorGUI::withItems ( array  $items)

Definition at line 34 of file class.ilLSLocatorGUI.php.

35 {
36 $clone = clone $this;
37 $clone->items = $items;
38 return $clone;
39 }

References $items.

Field Documentation

◆ $items

ilLSLocatorGUI::$items
protected

Definition at line 24 of file class.ilLSLocatorGUI.php.

Referenced by getComponent(), and withItems().

◆ $url_builder

ilLSLocatorGUI::$url_builder
protected

Definition at line 19 of file class.ilLSLocatorGUI.php.

Referenced by __construct().


The documentation for this class was generated from the following file: