1<?php declare(strict_types=1);
42 $this->custom_item_storage = $this->getCustomStorage();
44 if ($this->custom_item_storage->getType()) {
45 $this->type = $this->custom_item_storage->getType();
47 $this->role_based_visibility = $this->custom_item_storage->hasRoleBasedVisibility();
48 if ($this->custom_item_storage->hasRoleBasedVisibility()) {
49 $this->global_role_ids = $this->custom_item_storage->getGlobalRoleIDs();
60 $mm = $this->getCustomStorage();
62 if ($this->default_title ===
'-') {
63 $this->default_title = ilMMItemTranslationStorage::getDefaultTranslation($this->
identification());
65 $mm->setDefaultTitle($this->default_title);
67 $mm->setRoleBasedVisibility($this->role_based_visibility);
68 if ($this->role_based_visibility) {
69 $mm->setGlobalRoleIDs($this->global_role_ids);
80 public function delete():
void
83 throw new LogicException(
"Non Custom items can't be deleted");
86 $cm = $this->getCustomStorage();
95 $id = $this->raw_item->getProviderIdentification()->getInternalIdentifier();
97 $mm = ilMMCustomItemStorage::find(
$id);
179 if ($this->raw_item instanceof \
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem) {
180 return parent::isTopItem();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Class ilMMAbstractItemFacade.
IdentificationInterface $identification
Class ilMMCustomItemFacade.
setAction(string $action)
@inheritDoc
supportsRoleBasedVisibility()
@inheritDoc
getProviderNameForPresentation()
@inheritDoc
setIsTopItm(bool $top_item)
@inheritDoc
setType(string $type)
@inheritDoc
ilMMCustomItemStorage $custom_item_storage
__construct(IdentificationInterface $identification, Main $collector)
@inheritDoc
Class ilMMCustomItemStorage.
Interface IdentificationInterface.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.