ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
Icon.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
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  public const SMALL = 'small';
14  public const MEDIUM = 'medium';
15  public const LARGE = 'large';
16  public const RESPONSIVE = 'responsive';
17 
24  public function getName();
25 
31  public function getLabel();
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 }
$size
Definition: RandomTest.php:84
This describes a symbol.
Definition: Symbol.php:11
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:9
getAbbreviation()
Get the abbreviation of this icon.
getName()
Get the name of the icon.
getSize()
Get the size of this icon.
getLabel()
Get the label of this icon.
withDisabled($is_disabled)
Get an icon like this, but marked as disabled.
isDisabled()
Is the Icon disabled?
withSize($size)
Set the size for this icon.
withAbbreviation($abbreviation)
Set the abbreviation for this icon.