ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
MetaBarItemFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MetaBar\Factory
;
22
23
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
24
30
class
MetaBarItemFactory
31
{
36
public
function
topParentItem
(
IdentificationInterface
$identification):
TopParentItem
37
{
38
return
new
TopParentItem
($identification);
39
}
40
45
public
function
topLegacyItem
(
IdentificationInterface
$identification):
TopLegacyItem
46
{
47
return
new
TopLegacyItem
($identification);
48
}
49
54
public
function
linkItem
(
IdentificationInterface
$identification):
LinkItem
55
{
56
return
new
LinkItem
($identification);
57
}
58
63
public
function
topLinkItem
(
IdentificationInterface
$identification):
TopLinkItem
64
{
65
return
new
TopLinkItem
($identification);
66
}
67
72
public
function
notificationCenter
(
IdentificationInterface
$identification):
NotificationCenter
73
{
74
static
$created;
75
if
($created ===
true
) {
76
// I currently disabled this since we have unresolved problems in https://mantis.ilias.de/view.php?id=26374
77
// throw new \LogicException("only one NotificationCenter can exist");
78
}
79
$created =
true
;
80
81
return
new
NotificationCenter
($identification);
82
}
83
}
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory
Class MetaBarItemFactory This factory provides you all available types for MainMenu GlobalScreen Item...
Definition:
MetaBarItemFactory.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory\topLinkItem
topLinkItem(IdentificationInterface $identification)
Definition:
MetaBarItemFactory.php:63
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem
Definition:
TopLinkItem.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\NotificationCenter
Definition:
NotificationCenter.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory
Definition:
AbstractBaseItem.php:21
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem
Definition:
TopLegacyItem.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory\notificationCenter
notificationCenter(IdentificationInterface $identification)
Definition:
MetaBarItemFactory.php:72
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory\topLegacyItem
topLegacyItem(IdentificationInterface $identification)
Definition:
MetaBarItemFactory.php:45
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopParentItem
Definition:
TopParentItem.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory\linkItem
linkItem(IdentificationInterface $identification)
Definition:
MetaBarItemFactory.php:54
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory\topParentItem
topParentItem(IdentificationInterface $identification)
Definition:
MetaBarItemFactory.php:36
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem
Definition:
LinkItem.php:30
components
ILIAS
GlobalScreen
src
Scope
MetaBar
Factory
MetaBarItemFactory.php
Generated on Wed Sep 3 2025 23:03:08 for ILIAS by
1.8.13 (using
Doxyfile
)