ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
isItem.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
30interface 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}
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...