ILIAS  release_8 Revision v8.23
interface.ilMMItemFacadeInterface.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /******************************************************************************
6  *
7  * This file is part of ILIAS, a powerful learning management system.
8  *
9  * ILIAS is licensed with the GPL-3.0, you should have received a copy
10  * of said license along with the source code.
11  *
12  * If this is not the case or you just want to try ILIAS, you'll find
13  * us at:
14  * https://www.ilias.de
15  * https://github.com/ILIAS-eLearning
16  *
17  *****************************************************************************/
18 
21 
27 {
28  //
29  // Access to related objects
30  //
31  public function itemStorage(): ilMMItemStorage;
32 
33  public function getRawItem(): isItem;
34 
35  public function getFilteredItem(): isItem;
36 
37  public function identification(): IdentificationInterface;
38 
39 
40  //
41  // Presentation Methods
42  //
43 
47  public function getTypeForPresentation(): string;
48 
52  public function getProviderNameForPresentation(): string;
53 
57  public function getStatus(): string;
58 
59 
60  //
61  // Getters
62  //
66  public function isAvailable(): bool;
67 
71  public function isActivated(): bool;
72 
76  public function isEditable(): bool;
77 
81  public function isDeletable(): bool;
82 
86  public function isAlwaysAvailable(): bool;
87 
91  public function getDefaultTitle(): string;
92 
96  public function getId(): string;
97 
101  public function getAmountOfChildren(): int;
102 
106  public function hasStorage(): bool;
107 
111  public function supportsRoleBasedVisibility(): bool;
112 
116  public function hasRoleBasedVisibility(): bool;
117 
121  public function getGlobalRoleIDs(): array;
122 
126  public function setGlobalRoleIDs(array $global_role_ids): void;
127 
131  public function setRoleBasedVisibility(bool $role_based_visibility): void;
132 
136  public function isEmpty(): bool;
137 
141  public function isCustom(): bool;
142 
146  public function supportsCustomIcon(): bool;
147 
151  public function isCustomType(): bool;
152 
156  public function getParentIdentificationString(): string;
157 
161  public function getType(): string;
162 
166  public function isTopItem(): bool;
167 
171  public function isChild(): bool;
172 
176  public function isInLostItem(): bool;
177 
178  public function getIconID(): ?string;
179 
180 
181  //
182  // Setters
183  //
187  public function setAction(string $action): void;
188 
192  public function setActiveStatus(bool $status): void;
193 
197  public function setDefaultTitle(string $default_title): void;
198 
203  public function setIconID(string $icon_id): void;
204 
208  public function setPosition(int $position): void;
209 
213  public function setParent(string $parent): void;
214 
218  public function setType(string $type): void;
219 
223  public function setIsTopItm(bool $top_item): void;
224 
228  public function isInterchangeable(): bool;
229 
230  //
231  // CRUD
232  //
236  public function update(): void;
237 
241  public function create(): void;
242 
246  public function delete(): void;
247 }
setType(string $type)
setPosition(int $position)
$type
setAction(string $action)
setGlobalRoleIDs(array $global_role_ids)
setIsTopItm(bool $top_item)
setActiveStatus(bool $status)
setDefaultTitle(string $default_title)
setParent(string $parent)
setRoleBasedVisibility(bool $role_based_visibility)
setIconID(string $icon_id)
Interface ilMMItemFacadeInterface.