ILIAS  release_8 Revision v8.24
class.ilDclSelectionRecordRepresentation.php
Go to the documentation of this file.
1<?php
2
20{
21 // those should be overwritten by subclasses
22 public const PROP_SELECTION_TYPE = '';
23 public const PROP_SELECTION_OPTIONS = '';
24
25 public function getHTML(bool $link = true, array $options = []): string
26 {
27 $record_field_value = $this->getRecordField()->getValue();
28 $values = ilDclSelectionOption::getValues($this->getField()->getId(), $record_field_value);
29
30 return is_array($values) ? implode('<br>', $values) : $values;
31 }
32}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getValues(int $field_id, $opt_ids)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getHTML(bool $link=true, array $options=[])
Outputs html of a certain field.