19 declare(strict_types=1);
117 $item = $item->withVisibilityCallable(
118 $this->mm_access->isCurrentUserAllowedToSeeCustomItem(
120 fn():
bool => $item->isVisible()
128 $item = $item->withAction(
"#");
130 if ($item instanceof
isChild) {
131 $mm_item = ilMMItemStorage::find($identification->serialize());
132 $parent_identification =
'';
134 $parent_identification = $mm_item->getParentIdentification();
137 if ($parent_identification !==
'' && $parent_identification !==
'0') {
138 $item = $item->withParent(
141 ->fromSerializedIdentification($parent_identification)
163 TopParentItem::class,
193 $link_list->setCreationPrevented(
true);
210 RepositoryLink::class,
223 $lost->setCreationPrevented(
true);
232 $complex->setCreationPrevented(
true);
244 $last_part = substr(strrchr($type,
"\\"), 1);
245 $last_part = strtolower((
string) preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
247 return $this->dic->language()->txt(
"type_" . strtolower($last_part));
256 $last_part = substr(strrchr($type,
"\\"), 1);
257 $last_part = strtolower((
string) preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
259 return $this->dic->language()->txt(
"type_" . strtolower($last_part) .
"_info");
translateType(string $type)
getSingleCustomItem(ilMMCustomItemStorage $storage, bool $register=false)
getProviderNameForPresentation()
Class SeparatorItemRenderer.
Interface StaticMainMenuProvider.
static where($where, $operator=null)
Class ComplexItemRenderer.
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(Container $dic, ?\ilMainMenuAccess $access=null)
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