106 $item = $this->
globalScreen()->mainBar()->custom($storage->
getType(), $identification)->withVisibilityCallable(
107 $this->mm_access->isCurrentUserAllowedToSeeCustomItem($storage)
114 $item = $item->withAction(
"#");
116 if ($item instanceof
isChild) {
118 $parent_identification =
'';
120 $parent_identification = $mm_item->getParentIdentification();
123 if ($parent_identification) {
124 $item = $item->withParent(
127 ->fromSerializedIdentification($parent_identification)
147 TopParentItem::class,
172 $link_list->setCreationPrevented(
true);
186 RepositoryLink::class,
198 $lost->setCreationPrevented(
true);
207 $complex->setCreationPrevented(
true);
219 $last_part = substr(strrchr(
$type,
"\\"), 1);
220 $last_part = strtolower(preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
222 return $this->dic->language()->txt(
"type_" . strtolower($last_part));
231 $last_part = substr(strrchr(
$type,
"\\"), 1);
232 $last_part = strtolower(preg_replace(
'/(?<!^)[A-Z]/',
'_$0', $last_part));
234 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
Class ilMMCustomItemStorage.
static register(isItem $item)
Class ilMMLinkItemRenderer.
Class ilMMRepositoryLinkItemRenderer.
Class ilMMTopLinkItemRenderer.
Class ilMMTypeHandlerLink.
Class ilMMTypeHandlerRepositoryLink.
Class ilMMTypeHandlerSeparator.
Class ilMMTypeHandlerTopLink.
Class ilObjMainMenuAccess.
Interface StaticMainMenuProvider.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc