ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MainMenuItemFactory.php
Go to the documentation of this file.
2 
12 
21 {
22 
33  public function topParentItem(IdentificationInterface $identification) : TopParentItem
34  {
35  return new TopParentItem($identification);
36  }
37 
38 
47  public function topLinkItem(IdentificationInterface $identification) : TopLinkItem
48  {
49  return new TopLinkItem($identification);
50  }
51 
52 
60  public function link(IdentificationInterface $identification) : Link
61  {
62  return new Link($identification);
63  }
64 
65 
74  public function separator(IdentificationInterface $identification) : Separator
75  {
76  return new Separator($identification);
77  }
78 
79 
88  public function complex(IdentificationInterface $identification) : Complex
89  {
90  return new Complex($identification);
91  }
92 
93 
101  public function repositoryLink(IdentificationInterface $identification) : RepositoryLink
102  {
103  return new RepositoryLink($identification);
104  }
105 
106 
114  public function linkList(IdentificationInterface $identification) : LinkList
115  {
116  return new LinkList($identification);
117  }
118 
119 
126  public function custom(string $class_name, IdentificationInterface $identification) : isItem
127  {
128  if (!class_exists($class_name)) {
129  return new Lost($identification);
130  }
131 
132  return new $class_name($identification);
133  }
134 }
link(IdentificationInterface $identification)
Returns you s GlobalScreen Link which can be added to Slates.
complex(IdentificationInterface $identification)
Returns you a GlobalScreen Complex Item which is used to generate complex content from a Async-URL...
topLinkItem(IdentificationInterface $identification)
Returns you a GlobalScreen TopLinkItem which can be added to the MainMenu.
repositoryLink(IdentificationInterface $identification)
Returns you a GlobalScreen RepositoryLink Item which is used to generate URLs to Ref-IDs.
linkList(IdentificationInterface $identification)
Returns you a GlobalScreen LinkList Item which is used to group multiple Links.
topParentItem(IdentificationInterface $identification)
Returns you a GlobalScreen TopParentItem which can be added to the MainMenu.
separator(IdentificationInterface $identification)
Returns you a GlobalScreen Separator which is used to separate to other entries in a optical way...
custom(string $class_name, IdentificationInterface $identification)