ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
isItem.php
Go to the documentation of this file.
2
6
11interface isItem extends isGlobalScreenItem
12{
13
20 public function withVisibilityCallable(callable $is_visible) : isItem;
21
25 public function isVisible() : bool;
26
34 public function withAvailableCallable(callable $is_avaiable) : isItem;
35
39 public function isAvailable() : bool;
40
50 public function withNonAvailableReason(Legacy $element) : isItem;
51
55 public function getNonAvailableReason() : Legacy;
56
62 public function getPosition() : int;
63
68 public function withPosition(int $position) : isItem;
69
73 public function isAlwaysAvailable() : bool;
74
79 public function withAlwaysAvailable(bool $always_active) : isItem;
80
85 public function setTypeInformation(TypeInformation $information) : isItem;
86
91
92 public function isTop() : bool;
93}
An exception for terminatinating execution or to throw for unit testing.
getPosition()
Return the default position for installation, this will be overridden by the configuration later.
setTypeInformation(TypeInformation $information)
withNonAvailableReason(Legacy $element)
If your provider or the service which provides the Item does not allow to activate the item (.
withVisibilityCallable(callable $is_visible)
Pass a callable which can decide whether your element is visible for the current user.
withAvailableCallable(callable $is_avaiable)
Pass a callable which can decide wheter your element is available in general, e.g.