ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Group.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 2017 Alex Killing <killing@leifos.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Implementation\Component\Item
;
6
7
use
ILIAS\UI\Component
as
C
;
8
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
9
13
class
Group
implements
C\Item\Group
14
{
15
use
ComponentHelper
;
16
20
protected
$title
;
21
25
protected
$items
;
26
30
protected
$actions
;
31
37
public
function
__construct
(
$title
, array
$items
)
38
{
39
$this->
checkStringArg
(
"title"
,
$title
);
40
$this->title =
$title
;
41
$this->items =
$items
;
42
}
43
47
public
function
getTitle
()
48
{
49
return
$this->title
;
50
}
51
55
public
function
getItems
()
56
{
57
return
$this->items
;
58
}
59
63
public
function
withActions
(\
ILIAS
\
UI
\
Component
\Dropdown\
Standard
$actions
)
64
{
65
$clone = clone $this;
66
$clone->actions =
$actions
;
67
return
$clone;
68
}
69
73
public
function
getActions
()
74
{
75
return
$this->actions
;
76
}
77
}
ILIAS\UI\Implementation\Component\Item\Group\__construct
__construct($title, array $items)
Group constructor.
Definition:
Group.php:37
UI
Class Factory.
ILIAS\UI\Implementation\Component\Item\Group\$title
$title
Definition:
Group.php:20
ILIAS\UI\Implementation\Component\Item\Group\$items
$items
Definition:
Group.php:25
ILIAS
Class BaseForm.
ILIAS\UI\Implementation\Component\Item\Group\getItems
getItems()
Definition:
Group.php:55
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Implementation\Component\checkStringArg
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
Definition:
ComponentHelper.php:92
ILIAS\UI\Implementation\Component\Item\Group
Common interface to all items.
Definition:
Group.php:13
ILIAS\UI\Implementation\Component\Item\Standard
Definition:
Standard.php:9
ILIAS\UI\Implementation\Component\Item\Group\getActions
getActions()
Definition:
Group.php:73
ILIAS\UI\Implementation\Component\Item\Group\getTitle
getTitle()
Definition:
Group.php:47
ILIAS\UI\Implementation\Component\Item\Group\$actions
$actions
Definition:
Group.php:30
php
ILIAS\UI\Implementation\Component\Item\Group\withActions
withActions(\ILIAS\UI\Component\Dropdown\Standard $actions)
Definition:
Group.php:63
ILIAS\UI\Implementation\Component\Item
Definition:
Factory.php:5
src
UI
Implementation
Component
Item
Group.php
Generated on Thu Feb 27 2025 19:02:11 for ILIAS by
1.8.13 (using
Doxyfile
)