38 if ($this->custom_item_storage->getType()) {
39 $this->type = $this->custom_item_storage->getType();
41 $this->role_based_visibility = $this->custom_item_storage->hasRoleBasedVisibility();
42 if ($this->custom_item_storage->hasRoleBasedVisibility()) {
43 $this->global_role_ids = $this->custom_item_storage->getGlobalRoleIDs();
59 $mm->setRoleBasedVisibility($this->role_based_visibility);
60 if ($this->role_based_visibility) {
61 $mm->setGlobalRoleIDs($this->global_role_ids);
72 public function delete()
75 throw new LogicException(
"Non Custom items can't be deleted");
90 $id = $this->raw_item->getProviderIdentification()->getInternalIdentifier();
173 if ($this->raw_item instanceof \
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem) {
174 return parent::isTopItem();
An exception for terminatinating execution or to throw for unit testing.
static find($primary_key, array $add_constructor_args=array())
@inheritDoc
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Class ilMMAbstractItemFacade.
Class ilMMCustomItemFacade.
setAction(string $action)
@inheritDoc
supportsRoleBasedVisibility()
@inheritDoc
getProviderNameForPresentation()
@inheritDoc
setIsTopItm(bool $top_item)
@inheritDoc
setType(string $type)
@inheritDoc
__construct(IdentificationInterface $identification, Main $collector)
@inheritDoc
Class ilMMCustomItemStorage.
Interface IdentificationInterface.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.