ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Icon.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
28 interface Icon extends Symbol
29 {
30  // sizes of icons
31  public const SMALL = 'small';
32  public const MEDIUM = 'medium';
33  public const LARGE = 'large';
34  public const RESPONSIVE = 'responsive';
35 
40  public function getName(): string;
41 
45  public function withAbbreviation(string $abbreviation): Icon;
46 
50  public function getAbbreviation(): ?string;
51 
56  public function withSize(string $size): Icon;
57 
61  public function getSize(): string;
62 
66  public function isDisabled(): bool;
67 
71  public function withDisabled(bool $is_disabled): Icon;
72 }
This describes a symbol.
Definition: Symbol.php:29
withSize(string $size)
Set the size for this icon.
getAbbreviation()
Get the abbreviation of this icon.
getName()
Get the name of the icon.
withAbbreviation(string $abbreviation)
Set the abbreviation for this icon.
getSize()
Get the size of this icon.
withDisabled(bool $is_disabled)
Get an icon like this, but marked as disabled.
isDisabled()
Is the Icon disabled?