ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDateTimeInputGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilDateTimeInputGUI:
+ Collaboration diagram for ilDateTimeInputGUI:

Public Member Functions

 __construct (string $a_title="", string $a_postvar="")
 
 setDate (ilDateTime $a_date=null)
 set date E.g $dt_form->setDate(new ilDateTime(time(),IL_CAL_UTC)); or $dt_form->setDate(new ilDateTime('2008-06-12 08:00:00',IL_CAL_DATETIME)); More...
 
 getDate ()
 
 setShowTime (bool $a_showtime)
 
 getShowTime ()
 
 setStartYear (int $a_year)
 
 getStartYear ()
 
 setMinuteStepSize (int $a_step_size)
 Set minute step size E.g 5 => The selection will only show 00,05,10... More...
 
 getMinuteStepSize ()
 
 setShowSeconds (bool $a_showseconds)
 
 getShowSeconds ()
 
 setValueByArray (array $a_values)
 
 hasInvalidInput ()
 
 checkInput ()
 
 getInput ()
 
 setSideBySide (bool $a_val)
 
 getSideBySide ()
 
 render ()
 
 getOnloadCode ()
 
 insert (ilTemplate $a_tpl)
 
 getTableFilterHTML ()
 Get input item HTML to be inserted into table filters. More...
 
 serializeData ()
 
 unserializeData (string $a_data)
 
 getPostValueForComparison ()
 
 getToolbarHTML ()
 Get input item HTML to be inserted into ilToolbarGUI. More...
 
 hideSubForm ()
 
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem (ilFormPropertyGUI $a_item)
 
 getSubItems ()
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 
 getItemByPostVar (string $a_post_var)
 
- Public Member Functions inherited from ilFormPropertyGUI
 __construct (string $a_title="", string $a_postvar="")
 
 executeCommand ()
 
 getType ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setPostVar (string $a_postvar)
 
 getPostVar ()
 
 getFieldId ()
 
 setInfo (string $a_info)
 
 getInfo ()
 
 setAlert (string $a_alert)
 
 getAlert ()
 
 setRequired (bool $a_required)
 
 getRequired ()
 
 setDisabled (bool $a_disabled)
 
 getDisabled ()
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setParentForm (ilPropertyFormGUI $a_parentform)
 
 getParentForm ()
 
 setParent (ilFormPropertyGUI $a_val)
 
 getParent ()
 
 getSubForm ()
 
 hideSubForm ()
 
 setHiddenTitle (string $a_val)
 
 getHiddenTitle ()
 
 getItemByPostVar (string $a_post_var)
 Get item by post var. More...
 
 serializeData ()
 
 unserializeData (string $a_data)
 
 setParentTable ($a_val)
 Set parent table. More...
 
 getParentTable ()
 Get parent table. More...
 
 writeToSession ()
 
 clearFromSession ()
 
 readFromSession ()
 
 getHiddenTag (string $a_post_var, string $a_value)
 
 setMulti (bool $a_multi, bool $a_sortable=false, bool $a_addremove=true)
 
 getMulti ()
 
 setMultiValues (array $a_values)
 
 getMultiValues ()
 
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g. More...
 
 stripSlashesAddSpaceFallback (string $a_str)
 Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More...
 
 getTableFilterLabelFor ()
 Get label "for" attribute value for filter. More...
 
 getFormLabelFor ()
 Get label "for" attribute value for form. More...
 
 setRequestParam (string $key, $val)
 This writes the request (aka post) values. More...
 
- Public Member Functions inherited from ilTableFilterItem
 getTableFilterLabelFor ()
 Get label "for" attribute value. More...
 

Protected Member Functions

 getDatePickerTimeFormat ()
 
 parseDatePickerConfig ()
 
- Protected Member Functions inherited from ilFormPropertyGUI
 setType (string $a_type)
 
 checkParentFormTable ()
 
 getSessionKey ()
 
 getMultiIconsHTML ()
 
 int ($key)
 
 intArray ($key)
 
 str ($key)
 
 raw ($key)
 
 strArray ($key)
 
 arrayArray ($key)
 
 isRequestParamArray (string $key)
 
 getRequestParam (string $key, Refinery\Transformation $t)
 

Protected Attributes

ilObjUser $user
 
ilDateTime $date = null
 
string $time = "00:00:00"
 
bool $showtime = false
 
bool $showseconds = false
 
int $minute_step_size = 5
 
int $startyear = null
 
string $invalid_input = ''
 
bool $side_by_side = true
 
bool $valid = false
 
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
array $sub_items = array()
 
- Protected Attributes inherited from ilFormPropertyGUI
array $set_params = []
 
ilTable2GUI $parent_table = null
 
ilFormPropertyGUI $parent_gui = null
 
ilCtrl $ctrl
 
ilLanguage $lng
 
string $type = ""
 
string $title = ""
 
string $postvar = ""
 
string $info = ""
 
string $alert = ""
 
bool $required = false
 
ilPropertyFormGUI $parentform = null
 
string $hidden_title = ""
 
bool $multi = false
 
bool $multi_sortable = false
 
bool $multi_addremove = true
 
array $multi_values = []
 
RequestInterface $request
 
HTTP Services $http
 
Refinery Factory $refinery = null
 
bool $disabled = false
 
ilGlobalTemplateInterface $global_tpl = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters (string $a_text)
 Remove prohibited characters see #19159. More...
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning This class represents a date/time property in a property form.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file class.ilDateTimeInputGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilDateTimeInputGUI::__construct ( string  $a_title = "",
string  $a_postvar = "" 
)

Definition at line 39 of file class.ilDateTimeInputGUI.php.

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), ilFormPropertyGUI\setType(), and ILIAS\Repository\user().

42  {
43  global $DIC;
44 
45  $this->lng = $DIC->language();
46  $this->user = $DIC->user();
47  parent::__construct($a_title, $a_postvar);
48  $this->setType("datetime");
49  }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ checkInput()

ilDateTimeInputGUI::checkInput ( )

Definition at line 135 of file class.ilDateTimeInputGUI.php.

References ilFormPropertyGUI\$lng, $post, $valid, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getDate(), getDatePickerTimeFormat(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getStartYear(), IL_CAL_FKT_DATE, ilCalendarUtil\parseIncomingDate(), ilFormPropertyGUI\setAlert(), setDate(), ilFormPropertyGUI\str(), and ilLanguage\txt().

135  : bool
136  {
137  $lng = $this->lng;
138 
139  if ($this->getDisabled()) {
140  return true;
141  }
142 
143  $post = $this->str($this->getPostVar());
144 
145  // always done to make sure there are no obsolete values left
146  $this->setDate(null);
147 
148  $valid = false;
149  if (trim($post)) {
151  if ($parsed) {
152  $this->setDate($parsed);
153  $valid = true;
154  }
155  } elseif (!$this->getRequired()) {
156  $valid = true;
157  }
158 
159  if ($valid &&
160  $this->getDate() &&
161  $this->getStartYear() &&
162  $this->getDate()->get(IL_CAL_FKT_DATE, "Y") < $this->getStartYear()) {
163  $valid = false;
164  }
165 
166  $this->valid = $valid;
167 
168  if (!$valid) {
169  $this->invalid_input = $post;
170  $this->setAlert($lng->txt("form_msg_wrong_date"));
171  }
172 
173  if ($valid) {
174  $valid = $this->checkSubItemsInput();
175  }
176 
177  return $valid;
178  }
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...
const IL_CAL_FKT_DATE
setDate(ilDateTime $a_date=null)
set date E.g $dt_form->setDate(new ilDateTime(time(),IL_CAL_UTC)); or $dt_form->setDate(new ilDateTim...
static parseIncomingDate($a_value, bool $a_add_time=false)
Try to parse incoming value to date object.
$post
Definition: ltitoken.php:49
+ Here is the call graph for this function:

◆ getDate()

ilDateTimeInputGUI::getDate ( )

Definition at line 65 of file class.ilDateTimeInputGUI.php.

References $date.

Referenced by checkInput(), getInput(), hideSubForm(), render(), and serializeData().

65  : ?ilDateTime
66  {
67  return $this->date;
68  }
+ Here is the caller graph for this function:

◆ getDatePickerTimeFormat()

ilDateTimeInputGUI::getDatePickerTimeFormat ( )
protected

Definition at line 125 of file class.ilDateTimeInputGUI.php.

References getShowSeconds(), getShowTime(), and ilFormPropertyGUI\int().

Referenced by checkInput(), getOnloadCode(), render(), and setValueByArray().

125  : int
126  {
127  return (int) $this->getShowTime() + (int) $this->getShowSeconds();
128  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getInput()

ilDateTimeInputGUI::getInput ( )

Definition at line 180 of file class.ilDateTimeInputGUI.php.

References getDate(), getShowTime(), IL_CAL_DATE, and IL_CAL_DATETIME.

180  : ?string
181  {
182  if ($this->valid && $this->getDate() !== null) {
183  // getInput() should return a generic format
184  $post_format = $this->getShowTime()
186  : IL_CAL_DATE;
187  return $this->getDate()->get($post_format);
188  }
189  return null;
190  }
const IL_CAL_DATETIME
const IL_CAL_DATE
+ Here is the call graph for this function:

◆ getMinuteStepSize()

ilDateTimeInputGUI::getMinuteStepSize ( )

Definition at line 100 of file class.ilDateTimeInputGUI.php.

References $minute_step_size.

Referenced by parseDatePickerConfig().

100  : int
101  {
103  }
+ Here is the caller graph for this function:

◆ getOnloadCode()

ilDateTimeInputGUI::getOnloadCode ( )

Definition at line 268 of file class.ilDateTimeInputGUI.php.

References ilCalendarUtil\getCodeForPicker(), getDatePickerTimeFormat(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getPostVar(), and parseDatePickerConfig().

268  : array
269  {
270  $code = [];
271  if (!$this->getDisabled()) {
272  $picker_id = md5($this->getPostVar());
273 
275  $picker_id,
276  $this->getDatePickerTimeFormat(),
277  $this->parseDatePickerConfig(),
278  null,
279  null,
280  null,
281  "subform_" . $this->getPostVar()
282  );
283  }
284  return $code;
285  }
static getCodeForPicker(string $a_id, ?int $a_add_time=null, ?array $a_custom_config=null, ?string $a_id2=null, ?array $a_custom_config2=null, ?string $a_toggle_id=null, ?string $a_subform_id=null)
Add date time picker to element.
+ Here is the call graph for this function:

◆ getPostValueForComparison()

ilDateTimeInputGUI::getPostValueForComparison ( )

Definition at line 328 of file class.ilDateTimeInputGUI.php.

References ilFormPropertyGUI\getPostVar(), and ilFormPropertyGUI\str().

328  : string
329  {
330  return trim($this->str($this->getPostVar()));
331  }
+ Here is the call graph for this function:

◆ getShowSeconds()

ilDateTimeInputGUI::getShowSeconds ( )

Definition at line 110 of file class.ilDateTimeInputGUI.php.

References $showseconds.

Referenced by getDatePickerTimeFormat().

110  : bool
111  {
112  return $this->showseconds;
113  }
+ Here is the caller graph for this function:

◆ getShowTime()

ilDateTimeInputGUI::getShowTime ( )

Definition at line 75 of file class.ilDateTimeInputGUI.php.

References $showtime.

Referenced by getDatePickerTimeFormat(), getInput(), and unserializeData().

75  : bool
76  {
77  return $this->showtime;
78  }
+ Here is the caller graph for this function:

◆ getSideBySide()

ilDateTimeInputGUI::getSideBySide ( )

Definition at line 197 of file class.ilDateTimeInputGUI.php.

References $side_by_side.

Referenced by parseDatePickerConfig().

197  : bool
198  {
199  return $this->side_by_side;
200  }
+ Here is the caller graph for this function:

◆ getStartYear()

ilDateTimeInputGUI::getStartYear ( )

Definition at line 85 of file class.ilDateTimeInputGUI.php.

References $startyear.

Referenced by checkInput(), and parseDatePickerConfig().

85  : ?int
86  {
87  return $this->startyear;
88  }
+ Here is the caller graph for this function:

◆ getTableFilterHTML()

ilDateTimeInputGUI::getTableFilterHTML ( )

Get input item HTML to be inserted into table filters.

Implements ilTableFilterItem.

Definition at line 296 of file class.ilDateTimeInputGUI.php.

References render().

296  : string
297  {
298  $html = $this->render();
299  return $html;
300  }
+ Here is the call graph for this function:

◆ getToolbarHTML()

ilDateTimeInputGUI::getToolbarHTML ( )

Get input item HTML to be inserted into ilToolbarGUI.

Implements ilToolbarItem.

Definition at line 333 of file class.ilDateTimeInputGUI.php.

References render().

333  : string
334  {
335  $html = $this->render();
336  return $html;
337  }
+ Here is the call graph for this function:

◆ hasInvalidInput()

ilDateTimeInputGUI::hasInvalidInput ( )

Definition at line 130 of file class.ilDateTimeInputGUI.php.

References $invalid_input.

130  : bool
131  {
132  return (bool) $this->invalid_input;
133  }

◆ hideSubForm()

ilDateTimeInputGUI::hideSubForm ( )

Definition at line 339 of file class.ilDateTimeInputGUI.php.

References getDate().

339  : bool
340  {
341  return (!$this->getDate() || $this->getDate()->isNull());
342  }
+ Here is the call graph for this function:

◆ insert()

ilDateTimeInputGUI::insert ( ilTemplate  $a_tpl)

Definition at line 287 of file class.ilDateTimeInputGUI.php.

References ilTemplate\parseCurrentBlock(), render(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().

287  : void
288  {
289  $html = $this->render();
290 
291  $a_tpl->setCurrentBlock("prop_generic");
292  $a_tpl->setVariable("PROP_GENERIC", $html);
293  $a_tpl->parseCurrentBlock();
294  }
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:514
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
+ Here is the call graph for this function:

◆ parseDatePickerConfig()

ilDateTimeInputGUI::parseDatePickerConfig ( )
protected

Definition at line 202 of file class.ilDateTimeInputGUI.php.

References $config, getMinuteStepSize(), getSideBySide(), and getStartYear().

Referenced by getOnloadCode(), and render().

202  : array
203  {
204  $config = null;
205  if ($this->getMinuteStepSize()) {
206  $config['stepping'] = $this->getMinuteStepSize();
207  }
208  if ($this->getStartYear()) {
209  $config['minDate'] = $this->getStartYear() . '-01-01';
210  }
211  $config['sideBySide'] = $this->getSideBySide();
212  return $config;
213  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ render()

ilDateTimeInputGUI::render ( )

Definition at line 215 of file class.ilDateTimeInputGUI.php.

References $ilUser, ilFormPropertyGUI\$lng, $tpl, $user, ilCalendarUtil\addDateTimePicker(), getDate(), getDatePickerTimeFormat(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), ilCalendarUtil\getUserDateFormat(), IL_CAL_FKT_DATE, parseDatePickerConfig(), ilLegacyFormElementsUtil\prepareFormOutput(), and ilLanguage\txt().

Referenced by getTableFilterHTML(), getToolbarHTML(), and insert().

215  : string
216  {
218  $lng = $this->lng;
219 
220  $tpl = new ilTemplate("tpl.prop_datetime.html", true, true, "Services/Form");
221 
222  // config picker
223  if (!$this->getDisabled()) {
224  $picker_id = md5($this->getPostVar()); // :TODO: unique?
225  $tpl->setVariable('DATEPICKER_ID', $picker_id);
226 
228  $picker_id,
229  $this->getDatePickerTimeFormat(),
230  $this->parseDatePickerConfig(),
231  null,
232  null,
233  null,
234  "subform_" . $this->getPostVar()
235  );
236  } else {
237  $tpl->setVariable('DATEPICKER_DISABLED', 'disabled="disabled" ');
238  }
239 
240  // :TODO: i18n?
242  $tpl->setVariable('PLACEHOLDER', $pl_format);
243 
244  // accessibility description
245  $tpl->setVariable(
246  'DESCRIPTION',
247  ilLegacyFormElementsUtil::prepareFormOutput($lng->txt("form_date_aria_desc") . " " . $pl_format)
248  );
249 
250  // current value
251  $date_value = htmlspecialchars($this->invalid_input);
252  if (!$date_value &&
253  $this->getDate()) {
254  $out_format = ilCalendarUtil::getUserDateFormat($this->getDatePickerTimeFormat(), true);
255  $date_value = $this->getDate()->get(IL_CAL_FKT_DATE, $out_format, $ilUser->getTimeZone());
256  }
257 
258  $tpl->setVariable('DATEPICKER_VALUE', $date_value);
259  $tpl->setVariable('DATE_ID', $this->getPostVar());
260 
261  if ($this->getRequired()) {
262  $tpl->setVariable("REQUIRED", "required=\"required\"");
263  }
264 
265  return $tpl->get();
266  }
static addDateTimePicker(string $a_id, ?int $a_add_time=null, ?array $a_custom_config=null, ?string $a_id2=null, ?array $a_custom_config2=null, ?string $a_toggle_id=null, ?string $a_subform_id=null)
Add date time picker to element.
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...
static prepareFormOutput($a_str, bool $a_strip=false)
static getUserDateFormat(int $a_add_time=0, bool $a_for_parsing=false)
Parse current user setting into date/time format.
const IL_CAL_FKT_DATE
$ilUser
Definition: imgupload.php:34
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ serializeData()

ilDateTimeInputGUI::serializeData ( )

Definition at line 302 of file class.ilDateTimeInputGUI.php.

References getDate(), and IL_CAL_UNIX.

302  : string
303  {
304  if ($this->getDate()) {
305  return serialize($this->getDate()->get(IL_CAL_UNIX));
306  }
307  return "";
308  }
const IL_CAL_UNIX
+ Here is the call graph for this function:

◆ setDate()

ilDateTimeInputGUI::setDate ( ilDateTime  $a_date = null)

set date E.g $dt_form->setDate(new ilDateTime(time(),IL_CAL_UTC)); or $dt_form->setDate(new ilDateTime('2008-06-12 08:00:00',IL_CAL_DATETIME));

For fullday (no timezone conversion) events use:

            $dt_form->setDate(new ilDate('2008-08-01',IL_CAL_DATE));

Definition at line 60 of file class.ilDateTimeInputGUI.php.

Referenced by ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilPersonalSkillsFilterGUI\addToToolbar(), checkInput(), ilUserTableGUI\initFilter(), ilCalendarAppointmentGUI\initForm(), ilPCSectionGUI\initForm(), ilObjectActivationGUI\initFormEdit(), ilSessionStatisticsGUI\long(), ilSessionStatisticsGUI\periodic(), setValueByArray(), ilSessionStatisticsGUI\short(), and unserializeData().

60  : void
61  {
62  $this->date = $a_date;
63  }
+ Here is the caller graph for this function:

◆ setMinuteStepSize()

ilDateTimeInputGUI::setMinuteStepSize ( int  $a_step_size)

Set minute step size E.g 5 => The selection will only show 00,05,10...

minutes

Parameters
int$a_step_sizeminute step_size 1,5,10,15,20...

Definition at line 95 of file class.ilDateTimeInputGUI.php.

95  : void
96  {
97  $this->minute_step_size = $a_step_size;
98  }

◆ setShowSeconds()

ilDateTimeInputGUI::setShowSeconds ( bool  $a_showseconds)

Definition at line 105 of file class.ilDateTimeInputGUI.php.

105  : void
106  {
107  $this->showseconds = $a_showseconds;
108  }

◆ setShowTime()

◆ setSideBySide()

ilDateTimeInputGUI::setSideBySide ( bool  $a_val)

Definition at line 192 of file class.ilDateTimeInputGUI.php.

192  : void
193  {
194  $this->side_by_side = $a_val;
195  }

◆ setStartYear()

ilDateTimeInputGUI::setStartYear ( int  $a_year)

Definition at line 80 of file class.ilDateTimeInputGUI.php.

80  : void
81  {
82  $this->startyear = $a_year;
83  }

◆ setValueByArray()

ilDateTimeInputGUI::setValueByArray ( array  $a_values)

Definition at line 115 of file class.ilDateTimeInputGUI.php.

References getDatePickerTimeFormat(), ilFormPropertyGUI\getPostVar(), ilSubEnabledFormPropertyGUI\getSubItems(), ilCalendarUtil\parseIncomingDate(), and setDate().

115  : void
116  {
117  $incoming = $a_values[$this->getPostVar()] ?? "";
118  $this->setDate(ilCalendarUtil::parseIncomingDate($incoming, (bool) $this->getDatePickerTimeFormat()));
119 
120  foreach ($this->getSubItems() as $item) {
121  $item->setValueByArray($a_values);
122  }
123  }
setDate(ilDateTime $a_date=null)
set date E.g $dt_form->setDate(new ilDateTime(time(),IL_CAL_UTC)); or $dt_form->setDate(new ilDateTim...
static parseIncomingDate($a_value, bool $a_add_time=false)
Try to parse incoming value to date object.
+ Here is the call graph for this function:

◆ unserializeData()

ilDateTimeInputGUI::unserializeData ( string  $a_data)

Definition at line 310 of file class.ilDateTimeInputGUI.php.

References getShowTime(), IL_CAL_UNIX, and setDate().

310  : void
311  {
312  $tmp = unserialize($a_data);
313  if ($tmp) {
314  // we used to serialize the complete instance
315  if (is_object($tmp)) {
316  $date = $tmp;
317  } else {
318  $date = $this->getShowTime()
319  ? new ilDateTime($tmp, IL_CAL_UNIX)
320  : new ilDate($tmp, IL_CAL_UNIX);
321  }
322  $this->setDate($date);
323  } else {
324  $this->setDate();
325  }
326  }
const IL_CAL_UNIX
setDate(ilDateTime $a_date=null)
set date E.g $dt_form->setDate(new ilDateTime(time(),IL_CAL_UTC)); or $dt_form->setDate(new ilDateTim...
+ Here is the call graph for this function:

Field Documentation

◆ $date

ilDateTime ilDateTimeInputGUI::$date = null
protected

Definition at line 29 of file class.ilDateTimeInputGUI.php.

Referenced by getDate().

◆ $invalid_input

string ilDateTimeInputGUI::$invalid_input = ''
protected

Definition at line 35 of file class.ilDateTimeInputGUI.php.

Referenced by hasInvalidInput().

◆ $minute_step_size

int ilDateTimeInputGUI::$minute_step_size = 5
protected

Definition at line 33 of file class.ilDateTimeInputGUI.php.

Referenced by getMinuteStepSize().

◆ $showseconds

bool ilDateTimeInputGUI::$showseconds = false
protected

Definition at line 32 of file class.ilDateTimeInputGUI.php.

Referenced by getShowSeconds().

◆ $showtime

bool ilDateTimeInputGUI::$showtime = false
protected

Definition at line 31 of file class.ilDateTimeInputGUI.php.

Referenced by getShowTime().

◆ $side_by_side

bool ilDateTimeInputGUI::$side_by_side = true
protected

Definition at line 36 of file class.ilDateTimeInputGUI.php.

Referenced by getSideBySide().

◆ $startyear

int ilDateTimeInputGUI::$startyear = null
protected

Definition at line 34 of file class.ilDateTimeInputGUI.php.

Referenced by getStartYear().

◆ $time

string ilDateTimeInputGUI::$time = "00:00:00"
protected

Definition at line 30 of file class.ilDateTimeInputGUI.php.

◆ $user

ilObjUser ilDateTimeInputGUI::$user
protected

Definition at line 28 of file class.ilDateTimeInputGUI.php.

Referenced by render().

◆ $valid

bool ilDateTimeInputGUI::$valid = false
protected

Definition at line 37 of file class.ilDateTimeInputGUI.php.

Referenced by checkInput().


The documentation for this class was generated from the following file: