4include_once(
"./Services/Form/classes/class.ilDateTimeInputGUI.php");
 
   22                if (isset($a_values[$this->
getPostVar()][
"date"]) && is_array($a_values[$this->
getPostVar()][
"date"]))
 
   24                        if (@checkdate($a_values[$this->
getPostVar()][
"date"][
'm'], $a_values[$this->
getPostVar()][
"date"][
'd'], $a_values[$this->
getPostVar()][
"date"][
'y']))
 
   26                                parent::setValueByArray($a_values);
 
   30                elseif(is_array($a_values[$this->
getPostVar()]) && isset($a_values[$this->
getPostVar()][
"date"]) && !is_array($a_values[$this->
getPostVar()][
"date"]))
 
   47                        $item->setValueByArray($a_values);
 
   83                if ($dt[
'year'] == 0 && $dt[
'mon'] == 0 && $dt[
'mday'] == 0 && $this->
getRequired())
 
   86                        $this->
setAlert($lng->txt(
"msg_input_is_required"));
 
   89                else if ($dt[
'year'] == 0 && $dt[
'mon'] == 0 && $dt[
'mday'] == 0)
 
   96                        if (!checkdate((
int)$dt[
'mon'], (
int)$dt[
'mday'], (
int)$dt[
'year']))
 
   99                                $this->
setAlert($lng->txt(
"exc_date_not_valid"));
 
  117                $tpl = 
new ilTemplate(
"tpl.prop_datetime.html", 
true, 
true, 
"Services/Form");
 
  118                if (is_object($this->
getDate()))
 
  131                $lng->loadLanguageModule(
"jscalendar");
 
  132                require_once(
"./Services/Calendar/classes/class.ilCalendarUtil.php");
 
  137                        $tpl->setCurrentBlock(
'prop_date_activation');
 
  139                        $tpl->setVariable(
'TXT_DATE_ENABLED',$this->activation_title);
 
  140                        $tpl->setVariable(
'CHECKED_ENABLED',$this->activation_checked ? 
'checked="checked"' : 
'');
 
  141                        $tpl->setVariable(
'CHECKED_DISABLED',$this->
getDisabled() ? 
'disabled="disabled" ' : 
'');
 
  142                        $tpl->parseCurrentBlock();
 
  145                $tpl->setCurrentBlock(
"prop_date");
 
  146                include_once(
"./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
 
  149                $tpl->setVariable(
"INPUT_FIELDS_DATE", $this->
getPostVar().
"[date]");
 
  150                include_once 
'./Services/Calendar/classes/class.ilCalendarUserSettings.php';
 
  152                $tpl->setVariable(
"DATE_SELECT",
 
  155                $tpl->parseCurrentBlock();
 
static _getInstance()
get instance for logged in user
static initJSCalendar()
Init Javascript Calendar.
@classDescription Date and time handling
static get($a_glyph, $a_text="")
Get glyph html.
special template class to simplify handling of ITX/PEAR
static makeDateSelect($prefix, $year="", $month="", $day="", $startyear="", $a_long_month=true, $a_further_options=array(), $emptyoption=false)
Creates a combination of HTML selects for date inputs.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled