ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Icon.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
28interface 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 how an icon could be modified during construction of UI.
Definition: Icon.php:29
getSize()
Get the size of this icon.
getName()
Get the name of the icon.
isDisabled()
Is the Icon disabled?
withSize(string $size)
Set the size for this icon.
withAbbreviation(string $abbreviation)
Set the abbreviation for this icon.
withDisabled(bool $is_disabled)
Get an icon like this, but marked as disabled.
getAbbreviation()
Get the abbreviation of this icon.
This describes a symbol.
Definition: Symbol.php:30