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
9
14class Report extends Panel implements C\Panel\Report
15{
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}
An exception for terminatinating execution or to throw for unit testing.
toArray($value)
Wrap the given value in an array if it is no array.
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.