19 declare(strict_types=1);
84 $this->active_status = $status;
94 $this->parent_identification = $parent;
102 $s->setIdentifier(uniqid());
103 $s->setType($this->type);
105 $s->setAction($this->action);
106 $s->setDefaultTitle($this->default_title);
109 $this->custom_item_storage = $s;
113 $this->raw_item =
$provider->getSingleCustomItem($s);
114 if ($this->parent_identification && $this->raw_item instanceof
isChild) {
116 $this->raw_item = $this->raw_item->withParent($DIC->globalScreen()->identification()->fromSerializedIdentification($this->parent_identification));
119 $this->
identification = $this->raw_item->getProviderIdentification();
122 $this->mm_item->setPosition(9999999);
123 $this->mm_item->setIdentification($this->raw_item->getProviderIdentification()->serialize());
124 $this->mm_item->setParentIdentification($this->parent_identification);
125 $this->mm_item->setActive($this->active_status);
126 if ($this->raw_item instanceof isChild) {
127 $this->mm_item->setParentIdentification($this->raw_item->getParent()->serialize());
setActiveStatus(bool $status)
Class ilMMNullItemFacade.
Interface IdentificationInterface.
getProviderNameForPresentation()
__construct(IdentificationInterface $identification, Main $collector)
setIsTopItm(bool $top_item)
string $parent_identification
setParent(string $parent)
Class CustomMainBarProvider.
Class ilMMCustomItemFacade.
__construct(Container $dic, ilPlugin $plugin)
supportsRoleBasedVisibility()
Interface ilMMItemFacadeInterface.