3 declare(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());
setActiveStatus(bool $status)
Class ilMMNullItemFacade.
Interface IdentificationInterface.
getProviderNameForPresentation()
IdentificationInterface $identification
__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.