19declare(strict_types=1);
46 $this->custom_item_storage = $this->getCustomStorage();
48 if ($this->custom_item_storage->getType() !==
'' && $this->custom_item_storage->getType() !==
'0') {
49 $this->type = $this->custom_item_storage->getType();
51 $this->role_based_visibility = $this->custom_item_storage->hasRoleBasedVisibility();
52 if ($this->custom_item_storage->hasRoleBasedVisibility()) {
53 $this->global_role_ids = $this->custom_item_storage->getGlobalRoleIDs();
65 $mm = $this->getCustomStorage();
67 if ($this->default_title ===
'-') {
68 $this->default_title = ilMMItemTranslationStorage::getDefaultTranslation($this->
identification());
70 $mm->setDefaultTitle($this->default_title);
72 $mm->setRoleBasedVisibility($this->role_based_visibility);
73 if ($this->role_based_visibility) {
74 $mm->setGlobalRoleIDs($this->global_role_ids);
86 public function delete():
void
89 throw new LogicException(
"Non Custom items can't be deleted");
92 $cm = $this->getCustomStorage();
101 $id = $this->raw_item->getProviderIdentification()->getInternalIdentifier();
103 $mm = ilMMCustomItemStorage::find(
$id);
181 if ($this->raw_item instanceof
isItem) {
182 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.
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