ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
Structure.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\GUI\Tabs
;
22
27
class
Structure
28
{
32
private
array
$tabs
= [];
33
34
public
function
add
(
Tab
$tab): void
35
{
36
$this->
tabs
[$tab->
getId
()] = $tab;
37
}
38
42
public
function
get
(): array
43
{
44
return
$this->tabs
;
45
}
46
47
public
function
getById
(
string
$id
): ?
Tab
48
{
49
return
$this->
tabs
[
$id
] ??
null
;
50
}
51
52
public
function
getByHandlingClass
(
string
$handling_class): ?
Tab
53
{
54
$handling_class = strtolower($handling_class);
55
foreach
($this->
tabs
as $tab) {
56
if
(strtolower($tab->getHandlingClass()) === strtolower($handling_class)) {
57
return
$tab;
58
}
59
}
60
return
null
;
61
}
62
63
}
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ILIAS\GlobalScreen\GUI\Tabs\Structure
Definition:
Structure.php:28
ILIAS\GlobalScreen\GUI\Tabs\Structure\getById
getById(string $id)
Definition:
Structure.php:47
ILIAS\GlobalScreen\GUI\Tabs\Structure\add
add(Tab $tab)
Definition:
Structure.php:34
ILIAS\GlobalScreen\GUI\Tabs\Structure\$tabs
array $tabs
Definition:
Structure.php:32
ILIAS\GlobalScreen\GUI\Tabs\Structure\getByHandlingClass
getByHandlingClass(string $handling_class)
Definition:
Structure.php:52
ILIAS\GlobalScreen\GUI\Tabs\Tab
Definition:
Tab.php:30
ILIAS\GlobalScreen\GUI\Tabs\Tab\getId
getId()
Definition:
Tab.php:42
ILIAS\GlobalScreen\GUI\Tabs
Definition:
Structure.php:21
ILIAS\Repository\tabs
tabs()
Definition:
trait.GlobalDICGUIServices.php:121
components
ILIAS
GlobalScreen
src
GUI
Tabs
Structure.php
Generated on Sat Oct 18 2025 23:02:55 for ILIAS by
1.9.4 (using
Doxyfile
)