ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\GlobalScreen\GUI\Tabs\Structure Class Reference
+ Collaboration diagram for ILIAS\GlobalScreen\GUI\Tabs\Structure:

Public Member Functions

 add (Tab $tab)
 
 get ()
 
 getById (string $id)
 
 getByHandlingClass (string $handling_class)
 

Private Attributes

array $tabs = []
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 27 of file Structure.php.

Member Function Documentation

◆ add()

ILIAS\GlobalScreen\GUI\Tabs\Structure::add ( Tab  $tab)

Definition at line 34 of file Structure.php.

34 : void
35 {
36 $this->tabs[$tab->getId()] = $tab;
37 }

References ILIAS\GlobalScreen\GUI\Tabs\Tab\getId(), and ILIAS\Repository\tabs().

+ Here is the call graph for this function:

◆ get()

ILIAS\GlobalScreen\GUI\Tabs\Structure::get ( )
Returns
Tab[]

Definition at line 42 of file Structure.php.

42 : array
43 {
44 return $this->tabs;
45 }

References ILIAS\GlobalScreen\GUI\Tabs\Structure\$tabs.

◆ getByHandlingClass()

ILIAS\GlobalScreen\GUI\Tabs\Structure::getByHandlingClass ( string  $handling_class)

Definition at line 52 of file Structure.php.

52 : ?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 }

References ILIAS\Repository\tabs().

+ Here is the call graph for this function:

◆ getById()

ILIAS\GlobalScreen\GUI\Tabs\Structure::getById ( string  $id)

Definition at line 47 of file Structure.php.

47 : ?Tab
48 {
49 return $this->tabs[$id] ?? null;
50 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id, and ILIAS\Repository\tabs().

+ Here is the call graph for this function:

Field Documentation

◆ $tabs

array ILIAS\GlobalScreen\GUI\Tabs\Structure::$tabs = []
private

Definition at line 32 of file Structure.php.

Referenced by ILIAS\GlobalScreen\GUI\Tabs\Structure\get().


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