ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilDclDateSelectionRecordFieldModel.php
Go to the documentation of this file.
1 <?php
2 
20 {
21  public const PROP_SELECTION_TYPE = 'date_selection_type';
22  public const PROP_SELECTION_OPTIONS = 'date_selection_options';
23 
24  public function parseExportValue($value): string
25  {
26  $dates = [];
27  foreach (ilDclSelectionOption::getValues($this->getField()->getId(), $value) as $value) {
28  $date = new ilDate($value, IL_CAL_DATE);
29  $dates[] = $date->get(IL_CAL_DATE);
30  }
31  return implode("; ", $dates);
32  }
33 }
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const IL_CAL_DATE