ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
isItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
31 interface isItem extends isGlobalScreenItem
32 {
39  public function withVisibilityCallable(callable $is_visible): isItem;
40 
44  public function isVisible(): bool;
45 
53  public function withAvailableCallable(callable $is_available): isItem;
54 
58  public function isAvailable(): bool;
59 
69  public function withNonAvailableReason(Content $element): isItem;
70 
74  public function getNonAvailableReason(): Content;
75 
81  public function getPosition(): int;
82 
87  public function withPosition(int $position): isItem;
88 
92  public function isAlwaysAvailable(): bool;
93 
98  public function withAlwaysAvailable(bool $always_active): isItem;
99 
104  public function setTypeInformation(TypeInformation $information): isItem;
105 
106  public function getTypeInformation(): ?TypeInformation;
107 
108  public function isTop(): bool;
109 }
withVisibilityCallable(callable $is_visible)
Pass a callable which can decide whether your element is visible for the current user.
setTypeInformation(TypeInformation $information)
getPosition()
Return the default position for installation, this will be overridden by the configuration later...
withAvailableCallable(callable $is_available)
Pass a callable which can decide whether your element is available in general, e.g.
withNonAvailableReason(Content $element)
If your provider or the service which provides the Item does not allow to activate the item (...