19declare(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");
static return function(ContainerConfigurator $containerConfigurator)
static where($where, $operator=null)
Customizing of pimple-DIC for ILIAS.
Class TypeInformationCollection.
Class ComplexItemRenderer.
Class LinkListItemRenderer.
Class SeparatorItemRenderer.
Class TopParentItemRenderer.
Class Link Attention: This is not the same as the \ILIAS\UI\Component\Link\Link.
Class Link Attention: This is not the same as the \ILIAS\UI\Component\Link\Link.
Interface StaticMainMenuProvider.
Class CustomMainBarProvider.
provideTypeInformation()
@inheritDoc
translateType(string $type)
translateByline(string $type)
getSingleCustomItem(ilMMCustomItemStorage $storage, bool $register=false)
getProviderNameForPresentation()
@inheritDoc
ilMainMenuAccess $mm_access
__construct(Container $dic, \ilMainMenuAccess $access=null)
@inheritDoc
Class ilMMCustomItemStorage.
static register(isItem $item)
Class ilMMLinkItemRenderer.
Class ilMMRepositoryLinkItemRenderer.
Class ilMMTopLinkItemRenderer.
Class ilMMTypeHandlerLink.
Class ilMMTypeHandlerRepositoryLink.
Class ilMMTypeHandlerSeparator.
Class ilMMTypeHandlerTopLink.
Class ilObjMainMenuAccess.
Interface StaticMainMenuProvider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc