ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDclDateSelectionFieldModel.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public const PROP_SELECTION_TYPE = 'date_selection_type';
24 public const PROP_SELECTION_OPTIONS = 'date_selection_options';
25
26 public function personalizeOptionValue(string $value, ilObjUser $user): string
27 {
28 $value = parent::personalizeOptionValue($value, $user);
29 return (strtotime($value) === false) ? $value : date($user->getDateFormat()->toString(), strtotime($value));
30 }
31}
personalizeOptionValue(string $value, ilObjUser $user)
User class.