ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
isItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
30 interface isItem extends isGlobalScreenItem
31 {
35  public function getRenderer() : MetaBarItemRenderer;
36 
43  public function withVisibilityCallable(callable $is_visible) : isItem;
44 
48  public function isVisible() : bool;
49 
57  public function withAvailableCallable(callable $is_available) : isItem;
58 
62  public function isAvailable() : bool;
63 
69  public function getPosition() : int;
70 
75  public function withPosition(int $position) : isItem;
76 }
Interface isGlobalScreenItem.
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.