ILIAS  trunk Revision v5.2.0beta1-34132-g2d4d73d4a0
ILIAS\UI\Implementation\Component\Item\Group Class Reference

Common interface to all items. More...

+ Collaboration diagram for ILIAS\UI\Implementation\Component\Item\Group:

Public Member Functions

 __construct (string $title, array $items)
 
 getTitle ()
 
 getItems ()
 
 withActions (Dropdown\Standard $dropdown)
 
 getActions ()
 

Protected Attributes

string $title
 
array $items
 
Dropdown Standard $actions = null
 

Detailed Description

Common interface to all items.

Definition at line 30 of file Group.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\UI\Implementation\Component\Item\Group::__construct ( string  $title,
array  $items 
)
Parameters
Item

Definition at line 45 of file Group.php.

References ILIAS\UI\Implementation\Component\Item\Group\$items, and ILIAS\UI\Implementation\Component\Item\Group\$title.

46  {
47  $this->title = $title;
48  $this->items = $items;
49  }

Member Function Documentation

◆ getActions()

ILIAS\UI\Implementation\Component\Item\Group::getActions ( )

Definition at line 80 of file Group.php.

References ILIAS\UI\Implementation\Component\Item\Group\$actions.

80  : ?Dropdown\Standard
81  {
82  return $this->actions;
83  }

◆ getItems()

ILIAS\UI\Implementation\Component\Item\Group::getItems ( )

Definition at line 62 of file Group.php.

References ILIAS\UI\Implementation\Component\Item\Group\$items.

62  : array
63  {
64  return $this->items;
65  }

◆ getTitle()

ILIAS\UI\Implementation\Component\Item\Group::getTitle ( )

Definition at line 54 of file Group.php.

References ILIAS\UI\Implementation\Component\Item\Group\$title.

54  : string
55  {
56  return $this->title;
57  }

◆ withActions()

ILIAS\UI\Implementation\Component\Item\Group::withActions ( Dropdown\Standard  $dropdown)

Definition at line 70 of file Group.php.

70  : Item\Group
71  {
72  $clone = clone $this;
73  $clone->actions = $dropdown;
74  return $clone;
75  }

Field Documentation

◆ $actions

Dropdown Standard ILIAS\UI\Implementation\Component\Item\Group::$actions = null
protected

Definition at line 40 of file Group.php.

Referenced by ILIAS\UI\Implementation\Component\Item\Group\getActions().

◆ $items

array ILIAS\UI\Implementation\Component\Item\Group::$items
protected

◆ $title

string ILIAS\UI\Implementation\Component\Item\Group::$title
protected

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