ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Icon.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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.
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:28
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Custom.php:21
isDisabled()
Is the Icon disabled?