ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Custom.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\UI\Component as C;
24 
25 class Custom extends Icon implements C\Symbol\Icon\Custom
26 {
27  private string $icon_path;
28 
29  public function __construct(string $icon_path, string $label, string $size, bool $is_disabled)
30  {
31  $this->checkArgIsElement(
32  "size",
33  $size,
34  self::$possible_sizes,
35  implode('/', self::$possible_sizes)
36  );
37  $this->name = 'custom';
38  $this->icon_path = $icon_path;
39  $this->label = $label;
40  $this->size = $size;
41  $this->is_disabled = $is_disabled;
42  }
43 
47  public function getIconPath(): string
48  {
49  return $this->icon_path;
50  }
51 }
__construct(string $icon_path, string $label, string $size, bool $is_disabled)
Definition: Custom.php:29