ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDclDateSelectionRecordRepresentation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function getHTML(bool $link = true, array $options = []): string
24 {
25 $values = [];
26 foreach (ilDclSelectionOption::getValues((int) $this->getField()->getId(), $this->getRecordField()->getValue()) as $value) {
27 $values[] = $this->getField()->personalizeOptionValue($value, $this->user);
28 }
29
30 return implode(' | ', $values);
31 }
32}
getHTML(bool $link=true, array $options=[])
Outputs html of a certain field.
static getValues(int $field_id, $opt_ids)
getValue()
Get the value that is displayed in the input client side.
Definition: Group.php:49