ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilDclDateSelectionRecordRepresentation.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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[] = (strtotime($value) === false) ? $value : date($this->user->getDateFormat()->toString(), strtotime($value));
28  }
29 
30  return implode(' | ', $values);
31  }
32 }
static getValues(int $field_id, $opt_ids)
getValue()
Get the value that is displayed in the input client side.
Definition: Group.php:47