ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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 () | |
![]() | |
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) | |
![]() | |
__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... | |
![]() | |
getTableFilterLabelFor () | |
Get label "for" attribute value. More... | |
Protected Member Functions | |
getDatePickerTimeFormat () | |
parseDatePickerConfig () | |
![]() | |
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 |
![]() | |
array | $sub_items = array() |
![]() | |
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 | removeProhibitedCharacters (string $a_text) |
Remove prohibited characters see #19159. More... | |
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.
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\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), ilFormPropertyGUI\setType(), and ILIAS\Repository\user().
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().
ilDateTimeInputGUI::getDate | ( | ) |
Definition at line 65 of file class.ilDateTimeInputGUI.php.
References $date.
Referenced by checkInput(), getInput(), hideSubForm(), render(), and serializeData().
|
protected |
Definition at line 125 of file class.ilDateTimeInputGUI.php.
References getShowSeconds(), getShowTime(), and ilFormPropertyGUI\int().
Referenced by checkInput(), getOnloadCode(), render(), and setValueByArray().
ilDateTimeInputGUI::getInput | ( | ) |
Definition at line 180 of file class.ilDateTimeInputGUI.php.
References getDate(), getShowTime(), IL_CAL_DATE, and IL_CAL_DATETIME.
ilDateTimeInputGUI::getMinuteStepSize | ( | ) |
Definition at line 100 of file class.ilDateTimeInputGUI.php.
References $minute_step_size.
Referenced by parseDatePickerConfig().
ilDateTimeInputGUI::getOnloadCode | ( | ) |
Definition at line 268 of file class.ilDateTimeInputGUI.php.
References ilCalendarUtil\getCodeForPicker(), getDatePickerTimeFormat(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getPostVar(), and parseDatePickerConfig().
ilDateTimeInputGUI::getPostValueForComparison | ( | ) |
Definition at line 328 of file class.ilDateTimeInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and ilFormPropertyGUI\str().
ilDateTimeInputGUI::getShowSeconds | ( | ) |
Definition at line 110 of file class.ilDateTimeInputGUI.php.
References $showseconds.
Referenced by getDatePickerTimeFormat().
ilDateTimeInputGUI::getShowTime | ( | ) |
Definition at line 75 of file class.ilDateTimeInputGUI.php.
References $showtime.
Referenced by getDatePickerTimeFormat(), getInput(), and unserializeData().
ilDateTimeInputGUI::getSideBySide | ( | ) |
Definition at line 197 of file class.ilDateTimeInputGUI.php.
References $side_by_side.
Referenced by parseDatePickerConfig().
ilDateTimeInputGUI::getStartYear | ( | ) |
Definition at line 85 of file class.ilDateTimeInputGUI.php.
References $startyear.
Referenced by checkInput(), and parseDatePickerConfig().
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().
ilDateTimeInputGUI::getToolbarHTML | ( | ) |
Get input item HTML to be inserted into ilToolbarGUI.
Implements ilToolbarItem.
Definition at line 333 of file class.ilDateTimeInputGUI.php.
References render().
ilDateTimeInputGUI::hasInvalidInput | ( | ) |
ilDateTimeInputGUI::hideSubForm | ( | ) |
Definition at line 339 of file class.ilDateTimeInputGUI.php.
References getDate().
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().
|
protected |
Definition at line 202 of file class.ilDateTimeInputGUI.php.
References $config, getMinuteStepSize(), getSideBySide(), and getStartYear().
Referenced by getOnloadCode(), and 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().
ilDateTimeInputGUI::serializeData | ( | ) |
Definition at line 302 of file class.ilDateTimeInputGUI.php.
References getDate(), and IL_CAL_UNIX.
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().
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().
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().
ilDateTimeInputGUI::unserializeData | ( | string | $a_data | ) |
Definition at line 310 of file class.ilDateTimeInputGUI.php.
References getShowTime(), IL_CAL_UNIX, and setDate().
|
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().