ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ResettingDurationInputGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
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...
The ilDateDurationInputGUI class doesn&#39;t set it&#39;s value back to an empty value when called with an em...
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...