ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
MetaBarItemFactory.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
20
namespace
ILIAS\GlobalScreen\Scope\MetaBar\Factory
;
21
22
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
23
29
class
MetaBarItemFactory
30
{
35
public
function
topParentItem
(
IdentificationInterface
$identification):
TopParentItem
36
{
37
return
new
TopParentItem
($identification);
38
}
39
44
public
function
topLegacyItem
(
IdentificationInterface
$identification):
TopLegacyItem
45
{
46
return
new
TopLegacyItem
($identification);
47
}
48
53
public
function
linkItem
(
IdentificationInterface
$identification):
LinkItem
54
{
55
return
new
LinkItem
($identification);
56
}
57
62
public
function
topLinkItem
(
IdentificationInterface
$identification):
TopLinkItem
63
{
64
return
new
TopLinkItem
($identification);
65
}
66
71
public
function
notificationCenter
(
IdentificationInterface
$identification):
NotificationCenter
72
{
73
static
$created;
74
if
($created ===
true
) {
75
// I currently disabled this since we have unresolved problems in https://mantis.ilias.de/view.php?id=26374
76
// throw new \LogicException("only one NotificationCenter can exist");
77
}
78
$created =
true
;
79
80
return
new
NotificationCenter
($identification);
81
}
82
}
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory
Class MetaBarItemFactory This factory provides you all available types for MainMenu GlobalScreen Item...
Definition:
MetaBarItemFactory.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory\topLinkItem
topLinkItem(IdentificationInterface $identification)
Definition:
MetaBarItemFactory.php:62
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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:71
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory\topLegacyItem
topLegacyItem(IdentificationInterface $identification)
Definition:
MetaBarItemFactory.php:44
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopParentItem
Definition:
TopParentItem.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory\linkItem
linkItem(IdentificationInterface $identification)
Definition:
MetaBarItemFactory.php:53
ILIAS\GlobalScreen\Scope\MetaBar\Factory\MetaBarItemFactory\topParentItem
topParentItem(IdentificationInterface $identification)
Definition:
MetaBarItemFactory.php:35
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem
Definition:
LinkItem.php:30
components
ILIAS
GlobalScreen
src
Scope
MetaBar
Factory
MetaBarItemFactory.php
Generated on Wed Sep 10 2025 15:15:42 for ILIAS by
1.8.13 (using
Doxyfile
)