19 declare(strict_types=1);
117 $item = $item->withVisibilityCallable(
118 $this->mm_access->isCurrentUserAllowedToSeeCustomItem(
121 return $item->isVisible();
130 $item = $item->withAction(
"#");
132 if ($item instanceof
isChild) {
133 $mm_item = ilMMItemStorage::find($identification->serialize());
134 $parent_identification =
'';
136 $parent_identification = $mm_item->getParentIdentification();
139 if ($parent_identification) {
140 $item = $item->withParent(
143 ->fromSerializedIdentification($parent_identification)
164 TopParentItem::class,
194 $link_list->setCreationPrevented(
true);
211 RepositoryLink::class,
224 $lost->setCreationPrevented(
true);
233 $complex->setCreationPrevented(
true);
245 $last_part = substr(strrchr($type,
"\\"), 1);
246 $last_part = strtolower(preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
248 return $this->dic->language()->txt(
"type_" . strtolower($last_part));
257 $last_part = substr(strrchr($type,
"\\"), 1);
258 $last_part = strtolower(preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
260 return $this->dic->language()->txt(
"type_" . strtolower($last_part) .
"_info");
translateType(string $type)
__construct(Container $dic, \ilMainMenuAccess $access=null)
getSingleCustomItem(ilMMCustomItemStorage $storage, bool $register=false)
getProviderNameForPresentation()
Class SeparatorItemRenderer.
Interface StaticMainMenuProvider.
static where($where, $operator=null)
Class ComplexItemRenderer.
Customizing of pimple-DIC for ILIAS.
static register(isItem $item)
Class TypeInformationCollection.
Class LinkListItemRenderer.
Class TopParentItemRenderer.
translateByline(string $type)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class CustomMainBarProvider.
__construct(Container $dic, ilPlugin $plugin)
Interface StaticMainMenuProvider.
ilMainMenuAccess $mm_access