ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ResettingDurationInputGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
31{
32 public function setValueByArray(array $a_values): void
33 {
34 if (array_filter($a_values) === []) {
35 $this->setStart(null);
36 $this->setEnd(null);
37 return;
38 }
39 parent::setValueByArray($a_values);
40 }
41}
The ilDateDurationInputGUI class doesn't set it's value back to an empty value when called with an em...
input GUI for a time span (start and end date)
setEnd(?ilDateTime $a_date=null)
Set end date E.g $dt_form->setDate(new ilDateTime(time(),IL_CAL_UTC)); or $dt_form->setDate(new ilDat...
setStart(?ilDateTime $a_date=null)
Set start date E.g $dt_form->setDate(new ilDateTime(time(),IL_CAL_UTC)); or $dt_form->setDate(new ilD...