58 $this->gs_item = $collector->getSingleItem($identification);
59 $this->type_information = $collector->getTypeInformationCollection()->get(get_class($this->gs_item));
64 public function getId() : string
84 return $this->mm_item->getIdentification() ==
'';
117 if ($this->gs_item instanceof \
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isParent) {
118 return count($this->gs_item->getChildren());
127 return (
bool) ($this->gs_item->isAvailable() || $this->
item()->isAlwaysAvailable());
136 return (
bool) $this->mm_item->isActive() || $this->
item()->isAlwaysAvailable();
145 return $this->
item()->isAlwaysAvailable();
163 $default_translation = ilMMItemTranslationStorage::getDefaultTranslation($this->
identification);
164 if ($default_translation !==
"") {
165 return $default_translation;
167 if ($this->default_title ==
"-" && $this->gs_item instanceof \
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle) {
168 $this->default_title = $this->gs_item->getTitle();
190 if (!$this->gs_item->isAvailable() || $this->gs_item->isAlwaysAvailable()) {
191 return $DIC->ui()->renderer()->render($this->gs_item->getNonAvailableReason());
204 return $this->type_information->getTypeNameForPresentation();
210 if ($this->gs_item instanceof
isChild) {
211 $provider_name_for_presentation = $this->gs_item->getParent()->serialize();
213 return $provider_name_for_presentation;
225 $known_core_types = [
230 RepositoryLink::class,
233 TopParentItem::class,
235 foreach ($known_core_types as $known_core_type) {
236 if (get_class($this->gs_item) === $known_core_type) {
250 return $this->gs_item instanceof
isTopItem;
259 if ($this->gs_item instanceof
isChild) {
283 return $this->type_information->getType();
292 $this->mm_item->setParentIdentification($parent);
301 $this->mm_item->setPosition($position);
310 $this->mm_item->setActive($status);
319 $this->mm_item->update();
326 $this->mm_item->create();
341 foreach ($ts as $translation) {
343 $translation->delete();
352 public function delete()
deleteAssociatedTranslations()
deletes all translations associated with the current identification.
getProviderNameForPresentation()
Class ilMMAbstractItemFacade.
static find($primary_key, array $add_constructor_args=array())
Class ilGSProviderStorage.
__construct(\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification, Main $collector)
ilMMAbstractItemFacade constructor.
Class NullIdentification.
static storeDefaultTranslation(IdentificationInterface $identification, string $translation)
static where($where, $operator=null)
static register(isItem $item)
setPosition(int $position)
getParentIdentificationString()
getType()
FSX check if doublette.
setActiveStatus(bool $status)
setIsTopItm(bool $top_item)
setParent(string $parent)
Interface ilMMItemFacadeInterface.
setDefaultTitle(string $default_title)
Class ilMMItemTranslationStorage.