ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
MetaBarItemFactory.php
Go to the documentation of this file.
2
4
13{
14
20 public function topParentItem(IdentificationInterface $identification) : TopParentItem
21 {
22 return new TopParentItem($identification);
23 }
24
25
31 public function topLegacyItem(IdentificationInterface $identification) : TopLegacyItem
32 {
33 return new TopLegacyItem($identification);
34 }
35
36
42 public function linkItem(IdentificationInterface $identification) : LinkItem
43 {
44 return new LinkItem($identification);
45 }
46
47
53 public function topLinkItem(IdentificationInterface $identification) : TopLinkItem
54 {
55 return new TopLinkItem($identification);
56 }
57
58
65 {
66 static $created;
67 if ($created === true) {
68 // I currently disabled this since we have unresolved problems in https://mantis.ilias.de/view.php?id=26374
69 // throw new \LogicException("only one NotificationCenter can exist");
70 }
71 $created = true;
72
73 return new NotificationCenter($identification);
74 }
75}
An exception for terminatinating execution or to throw for unit testing.
topLegacyItem(IdentificationInterface $identification)
topLinkItem(IdentificationInterface $identification)
notificationCenter(IdentificationInterface $identification)
topParentItem(IdentificationInterface $identification)