ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
MetaBarItemFactory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
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 
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 }
Class MetaBarItemFactory This factory provides you all available types for MainMenu GlobalScreen Item...
topLinkItem(IdentificationInterface $identification)
notificationCenter(IdentificationInterface $identification)
topLegacyItem(IdentificationInterface $identification)
topParentItem(IdentificationInterface $identification)