124 $item = $item->withVisibilityCallable(
125 $this->mm_access->isCurrentUserAllowedToSeeCustomItem(
128 return $item->isVisible();
137 $item = $item->withAction(
"#");
139 if ($item instanceof
isChild) {
141 $parent_identification =
'';
143 $parent_identification = $mm_item->getParentIdentification();
146 if ($parent_identification) {
147 $item = $item->withParent(
150 ->fromSerializedIdentification($parent_identification)
171 TopParentItem::class,
201 $link_list->setCreationPrevented(
true);
218 RepositoryLink::class,
231 $lost->setCreationPrevented(
true);
240 $complex->setCreationPrevented(
true);
252 $last_part = substr(strrchr($type,
"\\"), 1);
253 $last_part = strtolower(preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
255 return $this->dic->language()->txt(
"type_" . strtolower($last_part));
264 $last_part = substr(strrchr($type,
"\\"), 1);
265 $last_part = strtolower(preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
267 return $this->dic->language()->txt(
"type_" . strtolower($last_part) .
"_info");
static find($primary_key, array $add_constructor_args=array())
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.