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
25
29interface 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}
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.
getPosition()
Return the default position for installation, this will be overridden by the configuration later.