65                 $this->activation_title = $a_title;
 
   66                 $this->activation_post_var = $a_postvar;
 
   67                 $this->activation_checked = $a_checked;
 
   78                 $this->toggle_fulltime_txt = $a_title;
 
   79                 $this->toggle_fulltime_checked = $a_checked;
 
   80                 $this->toggle_fulltime = 
true;
 
  116                 $this->start = $a_date;
 
  126                 $this->start_text = $a_txt;
 
  145                 $this->end_text = $a_txt;
 
  180                 $this->end = $a_date;
 
  200                 $this->showdate = $a_showdate;
 
  210                 return $this->showdate;
 
  220                 $this->show_empty = $a_empty;
 
  241                 $this->showtime = $a_showtime;
 
  251                 return $this->showtime;
 
  270                 $this->startyear = $a_year;
 
  280                 return $this->startyear;
 
  293                 $this->minute_step_size = $a_step_size;
 
  316                 if(isset($a_values[$this->
getPostVar()][
'start'][
"time"]))
 
  323                         if (isset($a_values[$this->
getPostVar()][
'start'][
"date"]))
 
  329                 if(isset($a_values[$this->
getPostVar()][
'end'][
"time"]))
 
  336                         if (isset($a_values[$this->
getPostVar()][
'end'][
"date"]))
 
  344                         $item->setValueByArray($a_values);
 
  392                         $this->
setAlert($lng->txt(
"exc_date_not_valid"));
 
  428                         $this->
setAlert($lng->txt(
"exc_date_not_valid"));
 
  448                 $tpl = 
new ilTemplate(
"tpl.prop_datetime_duration.html", 
true, 
true, 
"Services/Form");
 
  451                 if(is_a($this->
getStart(),
'ilDate'))
 
  455                 elseif(is_a($this->
getStart(),
'ilDateTime'))
 
  465                 if(is_a($this->
getEnd(),
'ilDate'))
 
  469                 elseif(is_a($this->
getEnd(),
'ilDateTime'))
 
  479                 $lng->loadLanguageModule(
"jscalendar");
 
  480                 require_once(
"./Services/Calendar/classes/class.ilCalendarUtil.php");
 
  485                         $tpl->setCurrentBlock(
'prop_date_activation');
 
  487                         $tpl->setVariable(
'TXT_DATE_ENABLED',$this->activation_title);
 
  488                         $tpl->setVariable(
'CHECKED_ENABLED',$this->activation_checked ? 
'checked="checked"' : 
'');
 
  489                         $tpl->setVariable(
'CHECKED_DISABLED',$this->
getDisabled() ? 
'disabled="disabled" ' : 
'');
 
  490                         $tpl->parseCurrentBlock();
 
  505                         $tpl->setCurrentBlock(
'toggle_fullday');
 
  507                         $tpl->setVariable(
'FULLDAY_TOGGLE_NAME',$this->
getPostVar().
'[fulltime]');
 
  508                         $tpl->setVariable(
'FULLDAY_TOGGLE_CHECKED',$this->toggle_fulltime_checked ? 
'checked="checked"' : 
'');
 
  509                         $tpl->setVariable(
'FULLDAY_TOGGLE_DISABLED',$this->
getDisabled() ? 
'disabled="disabled"' : 
'');
 
  510                         $tpl->setVariable(
'TXT_TOGGLE_FULLDAY',$this->toggle_fulltime_txt);
 
  511                         $tpl->parseCurrentBlock();
 
  519                         $tpl->setVariable(
"TXT_START_CALENDAR", $lng->txt(
"open_calendar"));
 
  523                         $tpl->setVariable(
"INPUT_FIELDS_START", $this->
getPostVar().
"[start][date]");
 
  524                         include_once 
'./Services/Calendar/classes/class.ilCalendarUserSettings.php';
 
  526                         $tpl->setVariable(
"START_SELECT",
 
  529                                         $start_info[
'year'], $start_info[
'mon'], $start_info[
'mday'],
 
  534                                                 'select_attributes' => array(
'onchange' => 
'ilUpdateEndDate();')
 
  539                         $tpl->setVariable(
"TXT_END_CALENDAR", $lng->txt(
"open_calendar"));
 
  542                         $tpl->setVariable(
"INPUT_FIELDS_END", $this->
getPostVar().
"[end][date]");
 
  543                         $tpl->setVariable(
"END_SELECT",
 
  546                                         $end_info[
'year'], $end_info[
'mon'], $end_info[
'mday'],
 
  556                         $tpl->setCurrentBlock(
"show_start_time");
 
  557                         $tpl->setVariable(
"START_TIME_SELECT",
 
  561                                         $start_info[
'hours'], $start_info[
'minutes'], $start_info[
'seconds'],
 
  566                                                 'select_attributes' => array(
'onchange' => 
'ilUpdateEndDate();')
 
  571                                 ? 
"(".$lng->txt(
"hh_mm_ss").
")" 
  572                                 : 
"(".$lng->txt(
"hh_mm").
")");
 
  573                         $tpl->parseCurrentBlock();
 
  575                         $tpl->setCurrentBlock(
"show_end_time");
 
  576                         $tpl->setVariable(
"END_TIME_SELECT",
 
  578                                 $end_info[
'hours'], $end_info[
'minutes'], $end_info[
'seconds'],
 
  583                                 ? 
"(".$lng->txt(
"hh_mm_ss").
")" 
  584                                 : 
"(".$lng->txt(
"hh_mm").
")");
 
  585                         $tpl->parseCurrentBlock();
 
  590                         $tpl->setVariable(
"DELIM", 
"<br />");
 
  605                 $a_tpl->setCurrentBlock(
"prop_generic");
 
  606                 $a_tpl->setVariable(
"PROP_GENERIC", $html);
 
  607                 $a_tpl->parseCurrentBlock();