ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
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 
25 
29 interface isItem extends isGlobalScreenItem
30 {
34  public function getRenderer(): MetaBarItemRenderer;
35 
42  public function withVisibilityCallable(callable $is_visible): isItem;
43 
47  public function isVisible(): bool;
48 
56  public function withAvailableCallable(callable $is_available): isItem;
57 
61  public function isAvailable(): bool;
62 
68  public function getPosition(): int;
69 
74  public function withPosition(int $position): isItem;
75 }
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.
withVisibilityCallable(callable $is_visible)
Pass a callable which can decide whether your element is visible for the current user.