124 $item = $item->withVisibilityCallable(
125 $this->mm_access->isCurrentUserAllowedToSeeCustomItem(
127 function () use ($item) {
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 where($where, $operator=null)
An exception for terminatinating execution or to throw for unit testing.
static find($primary_key, array $add_constructor_args=array())
@inheritDoc
Customizing of pimple-DIC for ILIAS.
Class BasicAccessCheckClosures.
Class TypeInformationCollection.
Class ComplexItemRenderer.
Class LinkListItemRenderer.
Class RepositoryLinkItemRenderer.
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, $register=false)
getProviderNameForPresentation()
@inheritDoc
__construct(Container $dic)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static register(isItem $item)
Class ilMMLinkItemRenderer.
Class ilMMRepositoryLinkItemRenderer.
Class ilMMTopLinkItemRenderer.
Class ilMMTypeHandlerLink.
Class ilMMTypeHandlerRepositoryLink.
Class ilMMTypeHandlerSeparator.
Class ilMMTypeHandlerTopLink.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface StaticMainMenuProvider.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...