106 $item = $this->
globalScreen()->mainBar()->custom($storage->
getType(), $identification)->withVisibilityCallable(
107 $this->mm_access->isCurrentUserAllowedToSeeCustomItem($storage)
114 $item = $item->withAction(
"#");
116 if ($item instanceof
isChild) {
118 $parent_identification =
'';
120 $parent_identification = $mm_item->getParentIdentification();
123 if ($parent_identification) {
124 $item = $item->withParent(
127 ->fromSerializedIdentification($parent_identification)
147 TopParentItem::class,
172 $link_list->setCreationPrevented(
true);
186 RepositoryLink::class,
198 $lost->setCreationPrevented(
true);
207 $complex->setCreationPrevented(
true);
219 $last_part = substr(strrchr($type,
"\\"), 1);
220 $last_part = strtolower(preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
222 return $this->dic->language()->txt(
"type_" . strtolower($last_part));
231 $last_part = substr(strrchr($type,
"\\"), 1);
232 $last_part = strtolower(preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
234 return $this->dic->language()->txt(
"type_" . strtolower($last_part) .
"_info");
static find($primary_key, array $add_constructor_args=array())
translateType(string $type)
getProviderNameForPresentation()
Class SeparatorItemRenderer.
Interface StaticMainMenuProvider.
static where($where, $operator=null)
Class ComplexItemRenderer.
Customizing of pimple-DIC for ILIAS.
Class ilMMLinkItemRenderer.
static register(isItem $item)
Class TypeInformationCollection.
Class LinkListItemRenderer.
Class ilMMRepositoryLinkItemRenderer.
Class TopParentItemRenderer.
translateByline(string $type)
Class ilMMTopLinkItemRenderer.
Class CustomMainBarProvider.
getSingleCustomItem(ilMMCustomItemStorage $storage, $register=false)
__construct(Container $dic, ilPlugin $plugin)
__construct(Container $dic)
Interface StaticMainMenuProvider.