|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
This class represents a date/time property in a property form. More...
Inheritance diagram for ilDateTimeInputGUI:
Collaboration diagram for ilDateTimeInputGUI:Public Member Functions | |
| __construct ($a_title="", $a_postvar="") | |
| Constructor. More... | |
| 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 () | |
| Get Date, yyyy-mm-dd. More... | |
| setShowTime ($a_showtime) | |
| Set Show Time Information. More... | |
| getShowTime () | |
| Get Show Time Information. More... | |
| setStartYear ($a_year) | |
| Set start year. More... | |
| getStartYear () | |
| Get start year. More... | |
| setMinuteStepSize ($a_step_size) | |
| Set minute step size E.g 5 => The selection will only show 00,05,10... minutes. More... | |
| getMinuteStepSize () | |
| Get minute step size. More... | |
| setShowSeconds ($a_showseconds) | |
| Set Show Seconds. More... | |
| getShowSeconds () | |
| Get Show Seconds. More... | |
| setValueByArray ($a_values) | |
| Set value by array. More... | |
| hasInvalidInput () | |
| checkInput () | |
| Check input, strip slashes etc. More... | |
| setSideBySide (bool $a_val) | |
| Set side by side. More... | |
| getSideBySide () | |
| Get side by side. More... | |
| render () | |
| Insert property html. More... | |
| getOnloadCode () | |
| Get onload code. More... | |
| insert ($a_tpl) | |
| Insert property html. More... | |
| getTableFilterHTML () | |
| Get HTML for table filter. More... | |
| serializeData () | |
| serialize data More... | |
| unserializeData ($a_data) | |
| unserialize data More... | |
| getPostValueForComparison () | |
| parse post value to make it comparable More... | |
| getToolbarHTML () | |
| Get HTML for toolbar. More... | |
| hideSubForm () | |
| Sub form hidden on init? More... | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
| addSubItem ($a_item) | |
| Add Subitem. More... | |
| getSubItems () | |
| Get Subitems. More... | |
| getSubInputItemsRecursive () | |
| returns a flat array of possibly existing subitems recursively More... | |
| checkSubItemsInput () | |
| Check SubItems. More... | |
| getSubForm () | |
| Get sub form html. More... | |
| getItemByPostVar ($a_post_var) | |
| Get item by post var. More... | |
Public Member Functions inherited from ilFormPropertyGUI | |
| __construct ($a_title="", $a_postvar="") | |
| Constructor. More... | |
| executeCommand () | |
| Execute command. More... | |
| getType () | |
| Get Type. More... | |
| setTitle ($a_title) | |
| Set Title. More... | |
| getTitle () | |
| Get Title. More... | |
| setPostVar ($a_postvar) | |
| Set Post Variable. More... | |
| getPostVar () | |
| Get Post Variable. More... | |
| getFieldId () | |
| Get Post Variable. More... | |
| setInfo ($a_info) | |
| Set Information Text. More... | |
| getInfo () | |
| Get Information Text. More... | |
| setAlert ($a_alert) | |
| Set Alert Text. More... | |
| getAlert () | |
| Get Alert Text. More... | |
| setRequired ($a_required) | |
| Set Required. More... | |
| getRequired () | |
| Get Required. More... | |
| setDisabled ($a_disabled) | |
| Set Disabled. More... | |
| getDisabled () | |
| Get Disabled. More... | |
| checkInput () | |
| Check input, strip slashes etc. More... | |
| setParentForm ($a_parentform) | |
| Set Parent Form. More... | |
| getParentForm () | |
| Get Parent Form. More... | |
| setParent ($a_val) | |
| Set Parent GUI object. More... | |
| getParent () | |
| Get Parent GUI object. More... | |
| getSubForm () | |
| Get sub form html. More... | |
| hideSubForm () | |
| Sub form hidden on init? More... | |
| setHiddenTitle ($a_val) | |
| Set hidden title (for screenreaders) More... | |
| getHiddenTitle () | |
| Get hidden title. More... | |
| getItemByPostVar ($a_post_var) | |
| Get item by post var. More... | |
| serializeData () | |
| serialize data More... | |
| unserializeData ($a_data) | |
| unserialize data More... | |
| writeToSession () | |
| Write to session. More... | |
| clearFromSession () | |
| Clear session value. More... | |
| readFromSession () | |
| Read from session. More... | |
| getHiddenTag ($a_post_var, $a_value) | |
| Get hidden tag (used for disabled properties) More... | |
| setMulti ($a_multi, $a_sortable=false, $a_addremove=true) | |
| Set Multi. More... | |
| getMulti () | |
| Get Multi. More... | |
| setMultiValues (array $a_values) | |
| Set multi values. More... | |
| getMultiValues () | |
| Get multi values. More... | |
| getContentOutsideFormTag () | |
| Get content that has to reside outside of the parent form tag, e.g. More... | |
| stripSlashesAddSpaceFallback ($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... | |
Public Member Functions inherited from ilTableFilterItem | |
| getTableFilterHTML () | |
| Get input item HTML to be inserted into table filters. More... | |
| getTableFilterLabelFor () | |
| Get label "for" attribute value. More... | |
| getToolbarHTML () | |
| Get input item HTML to be inserted into ilToolbarGUI. More... | |
Protected Member Functions | |
| getDatePickerTimeFormat () | |
| parseDatePickerConfig () | |
| parse properties to datepicker config More... | |
Protected Member Functions inherited from ilFormPropertyGUI | |
| setType ($a_type) | |
| Set Type. More... | |
| getMultiIconsHTML () | |
| Get HTML for multiple value icons. More... | |
Protected Attributes | |
| $lng | |
| $user | |
| $date | |
| $time = "00:00:00" | |
| $showtime = false | |
| $showseconds = false | |
| $minute_step_size = 5 | |
| $startyear = '' | |
| $invalid_input = '' | |
| $side_by_side = true | |
| $valid_incoming_datetime = null | |
Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
| $sub_items = array() | |
Protected Attributes inherited from ilFormPropertyGUI | |
| $ctrl | |
| $lng | |
| $type | |
| $title | |
| $postvar | |
| $info | |
| $alert | |
| $required = false | |
| $parentgui | |
| $parentform | |
| $hidden_title = "" | |
| $multi = false | |
| $multi_sortable = false | |
| $multi_addremove = true | |
| $multi_values | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilFormPropertyGUI | |
| static | removeProhibitedCharacters ($a_text) |
| Remove prohibited characters see #19159. More... | |
This class represents a date/time property in a property form.
Definition at line 11 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::__construct | ( | $a_title = "", |
|
$a_postvar = "" |
|||
| ) |
Constructor.
| string | $a_title | Title |
| string | $a_postvar | Post Variable |
Reimplemented from ilFormPropertyGUI.
Definition at line 44 of file class.ilDateTimeInputGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilFormPropertyGUI\setType(), and user().
Here is the call graph for this function:| ilDateTimeInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Definition at line 198 of file class.ilDateTimeInputGUI.php.
References $_POST, $lng, $valid, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getDate(), getDatePickerTimeFormat(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getShowTime(), getStartYear(), IL_CAL_DATE, IL_CAL_DATETIME, IL_CAL_FKT_DATE, ilCalendarUtil\parseIncomingDate(), ilFormPropertyGUI\setAlert(), and setDate().
Here is the call graph for this function:| ilDateTimeInputGUI::getDate | ( | ) |
Get Date, yyyy-mm-dd.
Definition at line 75 of file class.ilDateTimeInputGUI.php.
References $date.
Referenced by checkInput(), hideSubForm(), render(), and serializeData().
Here is the caller graph for this function:
|
protected |
Definition at line 183 of file class.ilDateTimeInputGUI.php.
References getShowSeconds(), and getShowTime().
Referenced by checkInput(), getOnloadCode(), render(), and setValueByArray().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDateTimeInputGUI::getMinuteStepSize | ( | ) |
Get minute step size.
@access public
Definition at line 139 of file class.ilDateTimeInputGUI.php.
References $minute_step_size.
Referenced by parseDatePickerConfig().
Here is the caller graph for this function:| ilDateTimeInputGUI::getOnloadCode | ( | ) |
Get onload code.
Definition at line 352 of file class.ilDateTimeInputGUI.php.
References ilCalendarUtil\getCodeForPicker(), getDatePickerTimeFormat(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getPostVar(), and parseDatePickerConfig().
Here is the call graph for this function:| ilDateTimeInputGUI::getPostValueForComparison | ( | ) |
parse post value to make it comparable
used by combination input gui
Definition at line 430 of file class.ilDateTimeInputGUI.php.
References $_POST, and ilFormPropertyGUI\getPostVar().
Here is the call graph for this function:| ilDateTimeInputGUI::getShowSeconds | ( | ) |
Get Show Seconds.
Definition at line 159 of file class.ilDateTimeInputGUI.php.
References $showseconds.
Referenced by getDatePickerTimeFormat().
Here is the caller graph for this function:| ilDateTimeInputGUI::getShowTime | ( | ) |
Get Show Time Information.
Definition at line 95 of file class.ilDateTimeInputGUI.php.
References $showtime.
Referenced by checkInput(), getDatePickerTimeFormat(), and unserializeData().
Here is the caller graph for this function:| ilDateTimeInputGUI::getSideBySide | ( | ) |
Get side by side.
Definition at line 267 of file class.ilDateTimeInputGUI.php.
References $side_by_side.
Referenced by parseDatePickerConfig().
Here is the caller graph for this function:| ilDateTimeInputGUI::getStartYear | ( | ) |
Get start year.
Reimplemented in ilBirthdayInputGUI.
Definition at line 115 of file class.ilDateTimeInputGUI.php.
References $startyear.
Referenced by checkInput(), and parseDatePickerConfig().
Here is the caller graph for this function:| ilDateTimeInputGUI::getTableFilterHTML | ( | ) |
Get HTML for table filter.
Implements ilTableFilterItem.
Definition at line 388 of file class.ilDateTimeInputGUI.php.
References render().
Here is the call graph for this function:| ilDateTimeInputGUI::getToolbarHTML | ( | ) |
Get HTML for toolbar.
Implements ilToolbarItem.
Definition at line 439 of file class.ilDateTimeInputGUI.php.
References render().
Here is the call graph for this function:| ilDateTimeInputGUI::hasInvalidInput | ( | ) |
| ilDateTimeInputGUI::hideSubForm | ( | ) |
Sub form hidden on init?
Reimplemented from ilFormPropertyGUI.
Definition at line 445 of file class.ilDateTimeInputGUI.php.
References getDate().
Here is the call graph for this function:| ilDateTimeInputGUI::insert | ( | $a_tpl | ) |
Insert property html.
Definition at line 376 of file class.ilDateTimeInputGUI.php.
References render().
Here is the call graph for this function:
|
protected |
parse properties to datepicker config
Reimplemented in ilBirthdayInputGUI.
Definition at line 278 of file class.ilDateTimeInputGUI.php.
References $config, getMinuteStepSize(), getSideBySide(), and getStartYear().
Referenced by getOnloadCode(), and render().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDateTimeInputGUI::render | ( | ) |
Insert property html.
Definition at line 295 of file class.ilDateTimeInputGUI.php.
References $ilUser, $lng, $tpl, $user, ilCalendarUtil\addDateTimePicker(), getDate(), getDatePickerTimeFormat(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), ilCalendarUtil\getUserDateFormat(), IL_CAL_FKT_DATE, parseDatePickerConfig(), and ilUtil\prepareFormOutput().
Referenced by getTableFilterHTML(), getToolbarHTML(), and insert().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDateTimeInputGUI::serializeData | ( | ) |
serialize data
Reimplemented from ilFormPropertyGUI.
Definition at line 397 of file class.ilDateTimeInputGUI.php.
References getDate(), and IL_CAL_UNIX.
Here is the call graph for this function:| 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));
| object | $a_date | ilDate or ilDateTime object |
Definition at line 65 of file class.ilDateTimeInputGUI.php.
Referenced by checkInput(), setValueByArray(), and unserializeData().
Here is the caller graph for this function:| ilDateTimeInputGUI::setMinuteStepSize | ( | $a_step_size | ) |
Set minute step size E.g 5 => The selection will only show 00,05,10... minutes.
@access public
| int | minute step_size 1,5,10,15,20... |
Definition at line 128 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::setShowSeconds | ( | $a_showseconds | ) |
Set Show Seconds.
| boolean | $a_showseconds | Show Seconds |
Definition at line 149 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::setShowTime | ( | $a_showtime | ) |
Set Show Time Information.
| boolean | $a_showtime | Show Time Information |
Definition at line 85 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::setSideBySide | ( | bool | $a_val | ) |
Set side by side.
| bool | $a_val | side by side |
Definition at line 258 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::setStartYear | ( | $a_year | ) |
Set start year.
| integer | Start year |
Definition at line 105 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
| array | $a_values | value array |
Definition at line 169 of file class.ilDateTimeInputGUI.php.
References getDatePickerTimeFormat(), ilFormPropertyGUI\getPostVar(), ilSubEnabledFormPropertyGUI\getSubItems(), ilCalendarUtil\parseIncomingDate(), and setDate().
Here is the call graph for this function:| ilDateTimeInputGUI::unserializeData | ( | $a_data | ) |
unserialize data
Reimplemented from ilFormPropertyGUI.
Definition at line 407 of file class.ilDateTimeInputGUI.php.
References $date, getShowTime(), IL_CAL_UNIX, and setDate().
Here is the call graph for this function:
|
protected |
Definition at line 23 of file class.ilDateTimeInputGUI.php.
Referenced by getDate(), and unserializeData().
|
protected |
Definition at line 29 of file class.ilDateTimeInputGUI.php.
Referenced by hasInvalidInput().
|
protected |
Definition at line 16 of file class.ilDateTimeInputGUI.php.
Referenced by checkInput(), and render().
|
protected |
Definition at line 27 of file class.ilDateTimeInputGUI.php.
Referenced by getMinuteStepSize().
|
protected |
Definition at line 26 of file class.ilDateTimeInputGUI.php.
Referenced by getShowSeconds().
|
protected |
Definition at line 25 of file class.ilDateTimeInputGUI.php.
Referenced by getShowTime().
|
protected |
Definition at line 34 of file class.ilDateTimeInputGUI.php.
Referenced by getSideBySide().
|
protected |
Definition at line 28 of file class.ilDateTimeInputGUI.php.
Referenced by getStartYear().
|
protected |
Definition at line 24 of file class.ilDateTimeInputGUI.php.
|
protected |
Definition at line 21 of file class.ilDateTimeInputGUI.php.
Referenced by render().
|
protected |
Definition at line 36 of file class.ilDateTimeInputGUI.php.