ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Standard.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
6
7use \ILIAS\UI\Component\Symbol\Icon\Icon;
8use \ILIAS\UI\Component\Image\Image;
9use \ILIAS\Data\Color;
10
15interface Standard extends Item
16{
20 public function withColor(Color $a_color) : Item;
21
25 public function getColor() : ?Color ;
26
30 public function withLeadImage(Image $image) : Item;
31
35 public function withLeadIcon(Icon $icon) : Item;
36
40 public function withLeadText(string $text) : Item;
41
45 public function withNoLead() : Item;
46
50 public function getLead();
51}
An exception for terminatinating execution or to throw for unit testing.
Color expresses a certain color by giving the mixing ratio in the RGB color space.
Definition: Color.php:13
Common interface to all items.
Definition: Item.php:11
withColor(Color $a_color)
Set a color.
withLeadIcon(Icon $icon)
Set icon as lead.
withLeadText(string $text)
Set image as lead.
withLeadImage(Image $image)
Set image as lead.
withNoLead()
Reset lead to null.
getColor()
Return the given color.
This describes how a icon could be modified during construction of UI.
Definition: Icon.php:10