4 require_once(
"./Services/Calendar/classes/class.ilCalendarUtil.php");
5 include_once(
"./Services/Table/interfaces/interface.ilTableFilterItem.php");
44 $this->lng = $DIC->language();
45 $this->
user = $DIC->user();
46 parent::__construct($a_title, $a_postvar);
63 $this->
date = $a_date;
83 $this->showtime = $a_showtime;
103 $this->startyear = $a_year;
126 $this->minute_step_size = $a_step_size;
147 $this->showseconds = $a_showseconds;
171 $item->setValueByArray($a_values);
222 $this->invalid_input =
$post;
227 if ($this->
getDate() !== null) {
270 $tpl =
new ilTemplate(
"tpl.prop_datetime.html",
true,
true,
"Services/Form");
275 $tpl->setVariable(
'DATEPICKER_ID', $picker_id);
287 $tpl->setVariable(
'DATEPICKER_DISABLED',
'disabled="disabled" ');
292 $tpl->setVariable(
'PLACEHOLDER', $pl_format);
295 $date_value = htmlspecialchars($this->invalid_input);
302 $tpl->setVariable(
'DATEPICKER_VALUE', $date_value);
306 $tpl->setVariable(
"REQUIRED",
"required=\"required\"");
321 $a_tpl->setCurrentBlock(
"prop_generic");
322 $a_tpl->setVariable(
"PROP_GENERIC",
$html);
323 $a_tpl->parseCurrentBlock();
350 $tmp = unserialize($a_data);
353 if (is_object($tmp)) {
Interface for property form input GUI classes that can be used in table filters.
static getUserDateFormat($a_add_time=false, $a_for_parsing=false)
Parse current user setting into date/time format.
static addDateTimePicker($a_id, $a_add_time=null, array $a_custom_config=null, $a_id2=null, $a_custom_config2=null, $a_toggle_id=null, $a_subform_id=null)
Add date time picker to element.
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
special template class to simplify handling of ITX/PEAR
static parseIncomingDate($a_value, $a_add_time=null)
Try to parse incoming value to date object.