50 $this->activation_title = $a_title;
51 $this->activation_post_var = $a_postvar;
52 $this->activation_checked = $a_checked;
79 $this->date = $a_date;
99 $this->showdate = $a_showdate;
119 $this->showtime = $a_showtime;
139 $this->show_empty = $a_empty;
159 $this->startyear = $a_year;
182 $this->minute_step_size = $a_step_size;
205 $this->showseconds = $a_showseconds;
227 if(isset($a_values[$this->
getPostVar()][
"time"]))
234 if (isset($a_values[$this->
getPostVar()][
"date"]))
242 $item->setValueByArray($a_values);
286 $this->
setAlert($lng->txt(
"exc_date_not_valid"));
317 $tpl =
new ilTemplate(
"tpl.prop_datetime.html",
true,
true,
"Services/Form");
319 if(is_a($this->
getDate(),
'ilDate'))
334 $lng->loadLanguageModule(
"jscalendar");
335 require_once(
"./Services/Calendar/classes/class.ilCalendarUtil.php");
340 $tpl->setCurrentBlock(
'prop_date_activation');
342 $tpl->setVariable(
'TXT_DATE_ENABLED',$this->activation_title);
343 $tpl->setVariable(
'CHECKED_ENABLED',$this->activation_checked ?
'checked="checked"' :
'');
344 $tpl->setVariable(
'CHECKED_DISABLED',$this->
getDisabled() ?
'disabled="disabled" ' :
'');
345 $tpl->parseCurrentBlock();
350 $tpl->setCurrentBlock(
"prop_date");
352 $tpl->setVariable(
"TXT_DATE_CALENDAR", $lng->txt(
"open_calendar"));
354 $tpl->setVariable(
"INPUT_FIELDS_DATE", $this->
getPostVar().
"[date]");
355 include_once
'./Services/Calendar/classes/class.ilCalendarUserSettings.php';
357 $tpl->setVariable(
"DATE_SELECT",
360 $tpl->parseCurrentBlock();
365 $tpl->setCurrentBlock(
"prop_time");
366 #$time = explode(":", $this->getTime());
367 $tpl->setVariable(
"TIME_SELECT",
369 $date_info[
'hours'], $date_info[
'minutes'], $date_info[
'seconds'],
375 ?
"(".$lng->txt(
"hh_mm_ss").
")"
376 :
"(".$lng->txt(
"hh_mm").
")");
377 $tpl->parseCurrentBlock();
382 $tpl->setVariable(
"DELIM",
"<br />");
397 $a_tpl->setCurrentBlock(
"prop_generic");
398 $a_tpl->setVariable(
"PROP_GENERIC", $html);
399 $a_tpl->parseCurrentBlock();
416 return serialize($this->
getDate());
424 $data = unserialize($a_data);
426 if (is_object(
$data))