ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Panel.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
6
8use ILIAS\UI\Implementation\Component\ComponentHelper;
9
14class Panel implements C\Panel\Panel {
15 use ComponentHelper;
16
20 protected $title;
21
25 private $content;
26
27
32 public function __construct($title,$content) {
33 $this->checkStringArg("title",$title);
34 $content = $this->toArray($content);
35 $types = [C\Component::class];
36 $this->checkArgListElements("content", $content, $types);
37
38 $this->title = $title;
39 $this->content = $content;
40 }
41
45 public function getTitle() {
46 return $this->title;
47 }
48
52 public function getContent() {
53 return $this->content;
54 }
55}
56?>
An exception for terminatinating execution or to throw for unit testing.