ILIAS  release_7 Revision v7.30-3-g800a261c036
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}
An exception for terminatinating execution or to throw for unit testing.
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.