ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Report.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 
7 use ILIAS\UI\Component as C;
9 
14 class Report extends Panel implements C\Panel\Report
15 {
16  use ComponentHelper;
17 
22  public function __construct($title, $content)
23  {
24  $types = [C\Panel\Sub::class];
25  $content = $this->toArray($content);
26  $this->checkArgListElements("content", $content, $types);
27 
28  parent::__construct($title, $content);
29  }
30 }
trait ComponentHelper
Provides common functionality for component implementations.
checkArgListElements($which, array &$values, &$classes)
Check every element of the list if it is an instance of one of the given classes. ...
toArray($value)
Wrap the given value in an array if it is no array.