ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Icon.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 2017 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3 
5 
10 {
11 
12  // sizes of icons
13  const SMALL = 'small';
14  const MEDIUM = 'medium';
15  const LARGE = 'large';
16  const RESPONSIVE = 'responsive';
17 
24  public function getName();
25 
31  public function getAriaLabel();
32 
39  public function withAbbreviation($abbreviation);
40 
46  public function getAbbreviation();
47 
55  public function withSize($size);
56 
62  public function getSize();
63 
69  public function isDisabled();
70 
77  public function withDisabled($is_disabled);
78 }
withDisabled($is_disabled)
Get an icon like this, but marked as disabled.
getAbbreviation()
Get the abbreviation of this icon.
$size
Definition: RandomTest.php:84
A component is the most general form of an entity in the UI.
Definition: Component.php:13
getAriaLabel()
Get the aria-label of this icon.
withAbbreviation($abbreviation)
Set the abbreviation for this icon.
getSize()
Get the size of this icon.
getName()
Get the name of the icon.
This describes how a icon could be modified during construction of UI.
Definition: Icon.php:9
withSize($size)
Set the size for this icon.
isDisabled()
Is the Icon disabled?