ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Lost.php
Go to the documentation of this file.
2
15
22{
23
27 private $children = array();
31 private $parent;
35 private $title = '';
36
37
42 {
43 parent::__construct($provider_identification);
44 $this->parent = new NullIdentification();
45 }
46
47
51 public function withTitle(string $title) : hasTitle
52 {
53 $this->title = $title;
54
55 return $this;
56 }
57
58
62 public function getTitle() : string
63 {
64 return $this->title;
65 }
66
67
71 public function getAsyncContentURL() : string
72 {
73 return "";
74 }
75
76
80 public function withAsyncContentURL(string $async_content_url) : hasAsyncContent
81 {
82 return $this;
83 }
84
85
89 public function withContent(Component $ui_component) : hasContent
90 {
91 return $this;
92 }
93
94
98 public function getContent() : Component
99 {
100 global $DIC;
101
102 return $DIC->ui()->factory()->legacy("");
103 }
104
105
109 public function withParent(IdentificationInterface $identification) : isItem
110 {
111 $this->parent = $identification;
112
113 return $this;
114 }
115
116
120 public function hasParent() : bool
121 {
122 return $this->parent instanceof isParent;
123 }
124
125
130 {
131 return $this->parent;
132 }
133
134
138 public function overrideParent(IdentificationInterface $identification) : isChild
139 {
140 $this->parent = $identification;
141
142 return $this;
143 }
144
145
149 public function getChildren() : array
150 {
151 return $this->children;
152 }
153
154
158 public function withChildren(array $children) : isParent
159 {
160 $this->children = $children;
161
162 return $this;
163 }
164
165
169 public function appendChild(isChild $child) : isParent
170 {
171 $this->children[] = $child;
172
173 return $this;
174 }
175
176
180 public function hasChildren() : bool
181 {
182 return count($this->children) > 0;
183 }
184
185
189 public function withAction(string $action) : hasAction
190 {
191 // noting to to
192 return $this;
193 }
194
195
199 public function getAction() : string
200 {
201 return "#";
202 }
203
204
208 public function withIsLinkToExternalAction(bool $is_external) : hasAction
209 {
210 // noting to to
211 return $this;
212 }
213
214
218 public function isLinkWithExternalAction() : bool
219 {
220 return false;
221 }
222}
An exception for terminatinating execution or to throw for unit testing.
withAsyncContentURL(string $async_content_url)
@inheritDoc
Definition: Lost.php:80
overrideParent(IdentificationInterface $identification)
@inheritDoc
Definition: Lost.php:138
appendChild(isChild $child)
@inheritDoc
Definition: Lost.php:169
withParent(IdentificationInterface $identification)
@inheritDoc
Definition: Lost.php:109
withContent(Component $ui_component)
@inheritDoc
Definition: Lost.php:89
withIsLinkToExternalAction(bool $is_external)
@inheritDoc
Definition: Lost.php:208
withChildren(array $children)
@inheritDoc
Definition: Lost.php:158
__construct(IdentificationInterface $provider_identification)
@inheritDoc
Definition: Lost.php:41
$action
A component is the most general form of an entity in the UI.
Definition: Component.php:14
global $DIC
Definition: saml.php:7