ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
7 use \ILIAS\UI\Component\Symbol\Icon\Icon;
8 use \ILIAS\UI\Component\Image\Image;
9 use \ILIAS\Data\Color;
10 
15 interface 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 }
getColor()
Return the given color.
withLeadText(string $text)
Set image as lead.
Color expresses a certain color by giving the mixing ratio in the RGB color space.
Definition: Color.php:12
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:9
withNoLead()
Reset lead to null.
Common interface to all items.
Definition: Item.php:10
withLeadImage(Image $image)
Set image as lead.
withLeadIcon(Icon $icon)
Set icon as lead.
withColor(Color $a_color)
Set a color.