18 declare(strict_types=1);
44 $this->custom_item_storage = $this->getCustomStorage();
46 if ($this->custom_item_storage->getType() !==
'' && $this->custom_item_storage->getType() !==
'0') {
47 $this->type = $this->custom_item_storage->getType();
49 $this->role_based_visibility = $this->custom_item_storage->hasRoleBasedVisibility();
50 if ($this->custom_item_storage->hasRoleBasedVisibility()) {
51 $this->global_role_ids = $this->custom_item_storage->getGlobalRoleIDs();
63 $mm = $this->getCustomStorage();
65 if ($this->default_title ===
'-') {
66 $this->default_title = ilMMItemTranslationStorage::getDefaultTranslation($this->
identification());
68 $mm->setDefaultTitle($this->default_title);
70 $mm->setRoleBasedVisibility($this->role_based_visibility);
71 if ($this->role_based_visibility) {
72 $mm->setGlobalRoleIDs($this->global_role_ids);
84 public function delete():
void 90 $cm = $this->getCustomStorage();
99 $id = $this->raw_item->getProviderIdentification()->getInternalIdentifier();
101 $mm = ilMMCustomItemStorage::find(
$id);
188 if ($this->raw_item instanceof
isItem) {
189 return parent::isTopItem();
Class ilMMAbstractItemFacade.
ilMMCustomItemStorage $custom_item_storage
getProviderNameForPresentation()
Interface IdentificationInterface.
__construct(IdentificationInterface $identification, Main $collector)
setAction(string $action)
Class ilMMCustomItemFacade.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(Container $dic, ilPlugin $plugin)
supportsRoleBasedVisibility()
setIsTopItm(bool $top_item)