107 string $short_title =
'',
108 string $view_title =
''
110 $allowed = [\ILIAS\UI\Component\Component::class];
113 $this->content = $content;
126 $clone = clone $this;
127 $clone->metabar = $meta_bar;
133 $clone = clone $this;
134 $clone->mainbar = $main_bar;
140 $clone = clone $this;
141 $clone->logo = $logo;
147 $clone = clone $this;
148 $clone->responsive_logo = $logo;
157 $clone = clone $this;
158 $clone->footer = $footer;
174 return ($this->logo instanceof
Image);
179 return ($this->responsive_logo instanceof
Image);
189 return $this->content;
194 return $this->metabar;
199 return $this->mainbar;
204 return $this->breadcrumbs;
214 return $this->responsive_logo;
219 return $this->footer;
227 $clone = clone $this;
228 $clone->with_headers = $use_headers;
234 return $this->with_headers;
239 return $this->ui_demo;
244 $clone = clone $this;
245 $clone->ui_demo = $switch;
251 $clone = clone $this;
252 $clone->title = $title;
263 $clone = clone $this;
264 $clone->short_title = $title;
270 return $this->short_title;
275 $clone = clone $this;
276 $clone->view_title = $title;
282 return $this->view_title;
287 $clone = clone $this;
288 $clone->mode_info = $mode_info;
294 return $this->mode_info;
299 return $this->mode_info instanceof
ModeInfo;
304 $clone = clone $this;
305 $clone->footer =
null;
312 $clone = clone $this;
313 $clone->system_infos = $system_infos;
319 return $this->system_infos;
324 return count($this->system_infos) > 0;
333 [self::LTR,self::RTL],
334 implode(
'/', [self::LTR,self::RTL])
336 $clone = clone $this;
337 $clone->text_direction = $text_direction;
343 return $this->text_direction;
348 $clone = clone $this;
349 $clone->meta_data[$key] = $value;
355 return $this->meta_data;
An exception for terminatinating execution or to throw for unit testing.
withSystemInfos(array $system_infos)
__construct(array $content, MetaBar $metabar=null, MainBar $mainbar=null, Breadcrumbs $locator=null, Image $logo=null, Footer $footer=null, string $title='', string $short_title='', string $view_title='')
Standard constructor.
withUIDemo(bool $switch=true)
withHeaders($use_headers)
withShortTitle(string $title)
withMainbar(MainBar $main_bar)
withResponsiveLogo(Image $logo)
withTextDirection(string $text_direction)
withFooter(Footer $footer)
@inheritDoc
withMetabar(MetaBar $meta_bar)
withAdditionalMetaDatum(string $key, string $value)
withModeInfo(ModeInfo $mode_info)
withViewTitle(string $title)
A component is the most general form of an entity in the UI.
This describes the Footer.
This describes the MainBar.
This describes the MetaBar.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes.
trait ComponentHelper
Provides common functionality for component implementations.
checkArgIsElement($which, $value, $array, $name)
Throw an InvalidArgumentException if $value is not an element of array.
Class ChatMainBarProvider \MainMenu\Provider.