ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AddNewItemElement.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
27{
31 public function __construct(
32 private readonly AddNewItemElementTypes $type,
33 private readonly string $label,
34 private readonly ?Icon $icon = null,
35 private readonly ?URI $creation_uri = null,
36 private readonly array $sub_elements = []
37 ) {
38 }
39
41 {
42 return $this->type;
43 }
44
45 public function getLabel(): string
46 {
47 return $this->label;
48 }
49
50 public function getIcon(): Icon
51 {
52 return $this->icon;
53 }
54
55 public function getCreationUri(): URI
56 {
57 return $this->creation_uri;
58 }
59
63 public function getSubElements(): array
64 {
65 return $this->sub_elements;
66 }
67}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
__construct(private readonly AddNewItemElementTypes $type, private readonly string $label, private readonly ?Icon $icon=null, private readonly ?URI $creation_uri=null, private readonly array $sub_elements=[])
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:29