ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMMNullItemFacade Class Reference

Class ilMMNullItemFacade. More...

+ Inheritance diagram for ilMMNullItemFacade:
+ Collaboration diagram for ilMMNullItemFacade:

Public Member Functions

 __construct (IdentificationInterface $identification, Main $collector)
 @inheritDoc More...
 
 isTopItem ()
 @inheritDoc More...
 
 setIsTopItm (bool $top_item)
 @inheritDoc More...
 
 isEmpty ()
 @inheritDoc More...
 
 setActiveStatus (bool $status)
 @inheritDoc More...
 
 setParent (string $parent)
 @inheritDoc More...
 
 create ()
 
 isAvailable ()
 
 isAlwaysAvailable ()
 @inheritDoc More...
 
 getProviderNameForPresentation ()
 @inheritDoc More...
 
 isDeletable ()
 @inheritDoc More...
 
 supportsRoleBasedVisibility ()
 @inheritDoc More...
 
- Public Member Functions inherited from ilMMCustomItemFacade
 __construct (IdentificationInterface $identification, Main $collector)
 @inheritDoc More...
 
 update ()
 @inheritDoc More...
 
 delete ()
 @inheritDoc More...
 
 supportsRoleBasedVisibility ()
 @inheritDoc More...
 
 isCustom ()
 @inheritDoc More...
 
 isEditable ()
 @inheritDoc More...
 
 isDeletable ()
 @inheritDoc More...
 
 getProviderNameForPresentation ()
 @inheritDoc More...
 
 setAction (string $action)
 @inheritDoc More...
 
 getType ()
 @inheritDoc More...
 
 setType (string $type)
 @inheritDoc More...
 
 isTopItem ()
 @inheritDoc More...
 
 setIsTopItm (bool $top_item)
 @inheritDoc More...
 
- Public Member Functions inherited from ilMMAbstractItemFacade
 __construct (protected IdentificationInterface $identification, Main $collector)
 ilMMAbstractItemFacade constructor. More...
 
 getId ()
 
 hasStorage ()
 
 supportsRoleBasedVisibility ()
 @inheritDoc More...
 
 canBeDeactivated ()
 
 hasRoleBasedVisibility ()
 @inheritDoc More...
 
 setRoleBasedVisibility (bool $role_based_visibility)
 @inheritDoc More...
 
 getGlobalRoleIDs ()
 @inheritDoc More...
 
 setGlobalRoleIDs (array $global_role_ids)
 @inheritDoc More...
 
 isEmpty ()
 
 itemStorage ()
 
 identification ()
 
 getRawItem ()
 
 getFilteredItem ()
 
 getAmountOfChildren ()
 
 isAvailable ()
 
 isActivated ()
 @inheritDoc More...
 
 isAlwaysAvailable ()
 @inheritDoc More...
 
 getProviderNameForPresentation ()
 
 getDefaultTitle ()
 
 setDefaultTitle (string $default_title)
 
 getStatus ()
 
 getTypeForPresentation ()
 
 getParentIdentificationString ()
 
 isCustomType ()
 
 isTopItem ()
 @inheritDoc More...
 
 canHaveChildren ()
 
 isChild ()
 
 isInLostItem ()
 @inheritDoc More...
 
 setIsTopItm (bool $top_item)
 @inheritDoc More...
 
 isInterchangeable ()
 @inheritDoc More...
 
 getType ()
 FSX check if doublette @inheritDoc. More...
 
 setParent (string $parent)
 
 setPosition (int $position)
 
 setActiveStatus (bool $status)
 
 supportsCustomIcon ()
 
 getIconID ()
 
 setIconID (string $icon_id)
 @inheritDoc More...
 
 update ()
 
 create ()
 
 getTitle ()
 
 delete ()
 @inheritDoc More...
 
 itemStorage ()
 
 getRawItem ()
 
 getFilteredItem ()
 
 identification ()
 
 getTypeForPresentation ()
 
 getProviderNameForPresentation ()
 
 getStatus ()
 
 isAvailable ()
 
 isActivated ()
 
 canBeDeactivated ()
 
 isEditable ()
 
 isDeletable ()
 
 isAlwaysAvailable ()
 
 getDefaultTitle ()
 
 getId ()
 
 getAmountOfChildren ()
 
 hasStorage ()
 
 supportsRoleBasedVisibility ()
 
 hasRoleBasedVisibility ()
 
 getGlobalRoleIDs ()
 
 setGlobalRoleIDs (array $global_role_ids)
 
 setRoleBasedVisibility (bool $role_based_visibility)
 
 isEmpty ()
 
 isCustom ()
 
 supportsCustomIcon ()
 
 isCustomType ()
 
 getParentIdentificationString ()
 
 getType ()
 
 isTopItem ()
 
 canHaveChildren ()
 
 isChild ()
 
 isInLostItem ()
 
 getIconID ()
 
 setAction (string $action)
 
 setActiveStatus (bool $status)
 
 setDefaultTitle (string $default_title)
 
 setIconID (string $icon_id)
 
 setPosition (int $position)
 
 setParent (string $parent)
 
 setType (string $type)
 
 setIsTopItm (bool $top_item)
 
 isInterchangeable ()
 
 update ()
 
 create ()
 
 delete ()
 
 getId ()
 
 getTitle ()
 

Protected Attributes

bool $top_item = false
 
- Protected Attributes inherited from ilMMCustomItemFacade
ilMMCustomItemStorage $custom_item_storage
 
string $action = ''
 
string $type = ''
 
bool $top_item = false
 
- Protected Attributes inherited from ilMMAbstractItemFacade
bool $role_based_visibility = false
 
array $global_role_ids = []
 
TypeInformation $type_information
 
ilMMItemStorage $mm_item
 
isItem $filtered_item
 
isItem $raw_item
 
string $default_title = "-"
 

Private Attributes

string $parent_identification = ""
 
bool $active_status
 

Additional Inherited Members

- Protected Member Functions inherited from ilMMAbstractItemFacade
 deleteAssociatedTranslations ()
 deletes all translations associated with the current identification. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMMNullItemFacade::__construct ( IdentificationInterface  $identification,
Main  $collector 
)

@inheritDoc

Reimplemented from ilMMCustomItemFacade.

Definition at line 41 of file class.ilMMNullItemFacade.php.

42 {
43 $this->identification = $identification;
44 parent::__construct($identification, $collector);
45 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and ilMMItemFacadeInterface\identification().

+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilMMNullItemFacade::create ( )

Implements ilMMItemFacadeInterface.

Definition at line 99 of file class.ilMMNullItemFacade.php.

99 : void
100 {
101 $s = new ilMMCustomItemStorage();
102 $s->setIdentifier(uniqid());
103 $s->setType($this->type);
104 $s->setTopItem($this->isTopItem());
105 $s->setAction($this->action);
106 $s->setDefaultTitle($this->default_title);
107 $s->create();
108
109 $this->custom_item_storage = $s;
110
111 global $DIC;
113 $this->raw_item = $provider->getSingleCustomItem($s);
114 if ($this->parent_identification && $this->raw_item instanceof isChild) {
115 global $DIC;
116 $this->raw_item = $this->raw_item->withParent($DIC->globalScreen()->identification()->fromSerializedIdentification($this->parent_identification));
117 }
118
119 $this->identification = $this->raw_item->getProviderIdentification();
120
121 $this->mm_item = new ilMMItemStorage();
122 $this->mm_item->setPosition(9999999); // always the last on the top item
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());
128 }
129
130 parent::create();
131 }
Class ilMMCustomItemStorage.
Class ilMMItemStorage.
$provider
Definition: ltitoken.php:80
global $DIC
Definition: shib_login.php:26

References $DIC, $provider, ilMMItemFacadeInterface\identification(), and isTopItem().

+ Here is the call graph for this function:

◆ getProviderNameForPresentation()

ilMMNullItemFacade::getProviderNameForPresentation ( )

@inheritDoc

Reimplemented from ilMMCustomItemFacade.

Definition at line 155 of file class.ilMMNullItemFacade.php.

155 : string
156 {
157 return $this->identification->getProviderNameForPresentation();
158 }

References ilMMItemFacadeInterface\identification().

+ Here is the call graph for this function:

◆ isAlwaysAvailable()

ilMMNullItemFacade::isAlwaysAvailable ( )

@inheritDoc

Implements ilMMItemFacadeInterface.

Definition at line 145 of file class.ilMMNullItemFacade.php.

145 : bool
146 {
147 return false;
148 }

◆ isAvailable()

ilMMNullItemFacade::isAvailable ( )

Implements ilMMItemFacadeInterface.

Definition at line 135 of file class.ilMMNullItemFacade.php.

135 : bool
136 {
137 return false;
138 }

◆ isDeletable()

ilMMNullItemFacade::isDeletable ( )

@inheritDoc

Reimplemented from ilMMCustomItemFacade.

Definition at line 165 of file class.ilMMNullItemFacade.php.

165 : bool
166 {
167 return true;
168 }

◆ isEmpty()

ilMMNullItemFacade::isEmpty ( )

@inheritDoc

Implements ilMMItemFacadeInterface.

Definition at line 72 of file class.ilMMNullItemFacade.php.

72 : bool
73 {
74 return true;
75 }

◆ isTopItem()

ilMMNullItemFacade::isTopItem ( )

@inheritDoc

Reimplemented from ilMMCustomItemFacade.

Definition at line 52 of file class.ilMMNullItemFacade.php.

52 : bool
53 {
54 return $this->top_item;
55 }

References $top_item.

Referenced by create().

+ Here is the caller graph for this function:

◆ setActiveStatus()

ilMMNullItemFacade::setActiveStatus ( bool  $status)

@inheritDoc

Implements ilMMItemFacadeInterface.

Definition at line 82 of file class.ilMMNullItemFacade.php.

82 : void
83 {
84 $this->active_status = $status;
85 }

◆ setIsTopItm()

ilMMNullItemFacade::setIsTopItm ( bool  $top_item)

@inheritDoc

Reimplemented from ilMMCustomItemFacade.

Definition at line 62 of file class.ilMMNullItemFacade.php.

62 : void
63 {
64 $this->top_item = $top_item;
65 }

References $top_item.

◆ setParent()

ilMMNullItemFacade::setParent ( string  $parent)

@inheritDoc

Implements ilMMItemFacadeInterface.

Definition at line 92 of file class.ilMMNullItemFacade.php.

92 : void
93 {
94 $this->parent_identification = $parent;
95 }

◆ supportsRoleBasedVisibility()

ilMMNullItemFacade::supportsRoleBasedVisibility ( )

@inheritDoc

Reimplemented from ilMMCustomItemFacade.

Definition at line 175 of file class.ilMMNullItemFacade.php.

175 : bool
176 {
177 return true;
178 }

Field Documentation

◆ $active_status

bool ilMMNullItemFacade::$active_status
private

Definition at line 34 of file class.ilMMNullItemFacade.php.

◆ $parent_identification

string ilMMNullItemFacade::$parent_identification = ""
private

Definition at line 33 of file class.ilMMNullItemFacade.php.

◆ $top_item

bool ilMMNullItemFacade::$top_item = false
protected

Definition at line 35 of file class.ilMMNullItemFacade.php.

Referenced by isTopItem(), and setIsTopItm().


The documentation for this class was generated from the following file: