ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
isItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
28 interface isItem extends isGlobalScreenItem
29 {
34  public function withVisibilityCallable(callable $is_visible): isItem;
35 
36  public function isVisible(): bool;
37 
43  public function withAvailableCallable(callable $is_available): isItem;
44 
45  public function isAvailable(): bool;
46 
51  public function getPosition(): int;
52 
53  public function withPosition(int $position): isItem;
54 
55  public function isTop(): bool;
56 
57  public function isCore(): bool;
58 
63  public function withIsCore(): isItem;
64 
65 }
getPosition()
Return the default position for installation, this will be overridden by the configuration later...
withIsCore()
Core Items are handled differently, they are not translatable via GUI and use their translations from...
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.