19 declare(strict_types=1);
55 return $this->
rawInput($element, $context_element);
63 return $this->
rawInput($element, $context_element);
72 $input = $this->ui_factory
73 ->dateTime($this->getInputLabelFromElement($this->presenter, $element, $context_element))
74 ->withFormat($this->presenter->utilities()->getUserDateFormat())
76 $this->
refinery->custom()->transformation(
77 function ($v) use ($dh) {
78 return isset($v) ? $dh->datetimeFromObject($v) :
'';
83 if ($element->
getData()->type() !== Type::NULL) {
86 return $this->addConstraintsFromElement($this->constraint_dictionary, $element, $input);
91 $date = $this->data_helper->datetimeToObject($data->
value());
92 return $this->presenter->utilities()->getUserDateFormat()->applyTo($date);
__construct(Container $dic, ilPlugin $plugin)