19 declare(strict_types=1);
31 protected string $time =
"00:00:00";
41 string $a_postvar =
"" 45 $this->
lng = $DIC->language();
46 $this->
user = $DIC->user();
62 $this->date = $a_date;
72 $this->showtime = $a_showtime;
82 $this->startyear = $a_year;
97 $this->minute_step_size = $a_step_size;
110 $incoming = $a_values[$this->
getPostVar()] ??
"";
114 $item->setValueByArray($a_values);
162 $this->invalid_input =
$post;
180 return $this->
getDate()->get($post_format);
204 $tpl =
new ilTemplate(
"tpl.prop_datetime.html",
true,
true,
"components/ILIAS/Form");
209 $tpl->setVariable(
'DATEPICKER_ID', $picker_id);
211 $tpl->setVariable(
'DATEPICKER_DISABLED',
'disabled="disabled" ');
216 $type =
'datetime-local';
218 $tpl->setVariable(
'DATEPICKER_TYPE',
$type);
222 $date_value = htmlspecialchars($this->invalid_input);
227 $tpl->setVariable(
'DATEPICKER_START_VALUE', $date_value);
237 $tpl->setVariable(
'DATEPICKER_STEP', $step_size);
240 $min = DateTimeImmutable::createFromFormat(
244 $tpl->setVariable(
'DATEPICKER_MIN', $min);
247 $tpl->setVariable(
'DATEPICKER_VALUE', $date_value);
248 $tpl->setVariable(
'DATE_ID', $this->
getPostVar());
251 $tpl->setVariable(
"REQUIRED",
"required=\"required\"");
288 $tmp = unserialize($a_data);
291 if (is_object($tmp)) {
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
static parseIncomingDate($value, bool $add_time=false)
Try to parse incoming value to date object.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setVariable($variable, $value='')
Sets a variable value.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
__construct(Container $dic, ilPlugin $plugin)