ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
isItem.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
28interface 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}
withIsCore()
@description Core Items are handled differently, they are not translatable via GUI and use their tran...
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.