ILIAS  release_7 Revision v7.30-3-g800a261c036
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
29 }
30}
An exception for terminatinating execution or to throw for unit testing.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
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.