|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This class represents a date/time property in a property form. 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 | |
| symbol () | |
| 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... | |
This class represents a date/time property in a property form.
Definition at line 26 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::__construct | ( | string | $a_title = "", |
| string | $a_postvar = "" |
||
| ) |
Definition at line 39 of file class.ilDateTimeInputGUI.php.
References $DIC, ILIAS\MetaData\Repository\Validation\Data\__construct(), ILIAS\Repository\lng(), ilFormPropertyGUI\setType(), and ILIAS\Repository\user().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| ilDateTimeInputGUI::getDate | ( | ) |
Definition at line 65 of file class.ilDateTimeInputGUI.php.
References $date.
Referenced by checkInput(), getInput(), hideSubForm(), render(), and serializeData().
Here is the caller graph for this function:
|
protected |
Definition at line 125 of file class.ilDateTimeInputGUI.php.
References getShowSeconds(), getShowTime(), and ilFormPropertyGUI\int().
Referenced by checkInput(), getOnloadCode(), render(), and setValueByArray().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDateTimeInputGUI::getInput | ( | ) |
Definition at line 180 of file class.ilDateTimeInputGUI.php.
References getDate(), getShowTime(), IL_CAL_DATE, and IL_CAL_DATETIME.
Here is the call graph for this function:| ilDateTimeInputGUI::getMinuteStepSize | ( | ) |
Definition at line 100 of file class.ilDateTimeInputGUI.php.
References $minute_step_size.
Referenced by parseDatePickerConfig().
Here is the caller graph for this function:| ilDateTimeInputGUI::getOnloadCode | ( | ) |
Definition at line 268 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 | ( | ) |
Definition at line 328 of file class.ilDateTimeInputGUI.php.
References serializeData().
Here is the call graph for this function:| ilDateTimeInputGUI::getShowSeconds | ( | ) |
Definition at line 110 of file class.ilDateTimeInputGUI.php.
References $showseconds.
Referenced by getDatePickerTimeFormat().
Here is the caller graph for this function:| ilDateTimeInputGUI::getShowTime | ( | ) |
Definition at line 75 of file class.ilDateTimeInputGUI.php.
References $showtime.
Referenced by getDatePickerTimeFormat(), getInput(), and unserializeData().
Here is the caller graph for this function:| ilDateTimeInputGUI::getSideBySide | ( | ) |
Definition at line 197 of file class.ilDateTimeInputGUI.php.
References $side_by_side.
Referenced by parseDatePickerConfig().
Here is the caller graph for this function:| ilDateTimeInputGUI::getStartYear | ( | ) |
Definition at line 85 of file class.ilDateTimeInputGUI.php.
References $startyear.
Referenced by checkInput(), and parseDatePickerConfig().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| ilDateTimeInputGUI::getToolbarHTML | ( | ) |
Get input item HTML to be inserted into ilToolbarGUI.
Implements ilToolbarItem.
Definition at line 333 of file class.ilDateTimeInputGUI.php.
References render().
Here is the call graph for this function:| ilDateTimeInputGUI::hasInvalidInput | ( | ) |
| ilDateTimeInputGUI::hideSubForm | ( | ) |
Definition at line 339 of file class.ilDateTimeInputGUI.php.
References getDate().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
|
protected |
Definition at line 202 of file class.ilDateTimeInputGUI.php.
References 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 | ( | ) |
Definition at line 215 of file class.ilDateTimeInputGUI.php.
References ilFormPropertyGUI\$lng, $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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDateTimeInputGUI::serializeData | ( | ) |
Definition at line 302 of file class.ilDateTimeInputGUI.php.
References getDate(), and IL_CAL_UNIX.
Referenced by getPostValueForComparison().
Here is the call graph for this function:
Here is the caller 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));
Definition at line 60 of file class.ilDateTimeInputGUI.php.
Referenced by ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilPersonalSkillsFilterGUI\addToToolbar(), checkInput(), ilUserTableGUI\initFilter(), ilPCSectionGUI\initForm(), ilSessionStatisticsGUI\long(), ilSessionStatisticsGUI\periodic(), setValueByArray(), ilSessionStatisticsGUI\short(), and unserializeData().
Here is the caller graph for this function:| ilDateTimeInputGUI::setMinuteStepSize | ( | int | $a_step_size | ) |
Set minute step size E.g 5 => The selection will only show 00,05,10...
minutes
| int | $a_step_size | minute step_size 1,5,10,15,20... |
Definition at line 95 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::setShowSeconds | ( | bool | $a_showseconds | ) |
Definition at line 105 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::setShowTime | ( | bool | $a_showtime | ) |
Definition at line 70 of file class.ilDateTimeInputGUI.php.
Referenced by ilADTDateSearchBridgeRange\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), ilObjUserFolderGUI\initAccessRestrictionForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilBookingScheduleGUI\initForm(), ilDclTableEditGUI\initForm(), and ilConsultationHoursGUI\initFormSequence().
Here is the caller graph for this function:| ilDateTimeInputGUI::setSideBySide | ( | bool | $a_val | ) |
Definition at line 192 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::setStartYear | ( | int | $a_year | ) |
Definition at line 80 of file class.ilDateTimeInputGUI.php.
| ilDateTimeInputGUI::setValueByArray | ( | array | $a_values | ) |
Definition at line 115 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 | ( | string | $a_data | ) |
Definition at line 310 of file class.ilDateTimeInputGUI.php.
References getShowTime(), IL_CAL_UNIX, and setDate().
Here is the call graph for this function:
|
protected |
Definition at line 29 of file class.ilDateTimeInputGUI.php.
Referenced by getDate().
|
protected |
Definition at line 35 of file class.ilDateTimeInputGUI.php.
Referenced by hasInvalidInput().
|
protected |
Definition at line 33 of file class.ilDateTimeInputGUI.php.
Referenced by getMinuteStepSize().
|
protected |
Definition at line 32 of file class.ilDateTimeInputGUI.php.
Referenced by getShowSeconds().
|
protected |
Definition at line 31 of file class.ilDateTimeInputGUI.php.
Referenced by getShowTime().
|
protected |
Definition at line 36 of file class.ilDateTimeInputGUI.php.
Referenced by getSideBySide().
|
protected |
Definition at line 34 of file class.ilDateTimeInputGUI.php.
Referenced by getStartYear().
|
protected |
Definition at line 30 of file class.ilDateTimeInputGUI.php.
|
protected |
Definition at line 28 of file class.ilDateTimeInputGUI.php.
Referenced by render().
|
protected |
Definition at line 37 of file class.ilDateTimeInputGUI.php.
Referenced by checkInput().