3declare(strict_types=1);
64 $this->active_status = $status;
73 $this->parent_identification = $parent;
80 $s->setIdentifier(uniqid());
81 $s->setType($this->type);
83 $s->setAction($this->action);
84 $s->setDefaultTitle($this->default_title);
87 $this->custom_item_storage = $s;
91 $this->raw_item =
$provider->getSingleCustomItem($s);
92 if ($this->parent_identification && $this->raw_item instanceof
isChild) {
94 $this->raw_item = $this->raw_item->withParent(
$DIC->globalScreen()->identification()->fromSerializedIdentification($this->parent_identification));
97 $this->
identification = $this->raw_item->getProviderIdentification();
100 $this->mm_item->setPosition(9999999);
101 $this->mm_item->setIdentification($this->raw_item->getProviderIdentification()->serialize());
102 $this->mm_item->setParentIdentification($this->parent_identification);
103 $this->mm_item->setActive($this->active_status);
104 if ($this->raw_item instanceof
isChild) {
105 $this->mm_item->setParentIdentification($this->raw_item->getParent()->serialize());
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Class CustomMainBarProvider.
IdentificationInterface $identification
Class ilMMCustomItemFacade.
Class ilMMCustomItemStorage.
Class ilMMNullItemFacade.
__construct(IdentificationInterface $identification, Main $collector)
@inheritDoc
setIsTopItm(bool $top_item)
@inheritDoc
setActiveStatus(bool $status)
@inheritDoc
setParent(string $parent)
@inheritDoc
supportsRoleBasedVisibility()
@inheritDoc
string $parent_identification
isAlwaysAvailable()
@inheritDoc
getProviderNameForPresentation()
@inheritDoc
Interface IdentificationInterface.
Interface ilMMItemFacadeInterface.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc