ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
input GUI for a time span (start and end date) More...
Public Member Functions | |
__construct (string $a_title="", string $a_postvar="") | |
enableToggleFullTime (string $a_title, bool $a_checked) | |
enabledToggleFullTime () | |
setStart (?ilDateTime $a_date=null) | |
Set start 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... | |
setStartText (string $a_txt) | |
getStartText () | |
setEndText (string $a_txt) | |
getEndText () | |
getStart () | |
setEnd (?ilDateTime $a_date=null) | |
Set end 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... | |
getEnd () | |
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 () | |
Fixed to one minute increments, see https://mantis.ilias.de/view.php?id=42740. More... | |
setValueByArray (array $a_values) | |
checkInput () | |
getInput () | |
render () | |
insert (ilTemplate $a_tpl) | |
getTableFilterHTML () | |
Get input item HTML to be inserted into table filters. More... | |
getValue () | |
setValue ($value) | |
Called from table gui with the stored session value Attention: If the user resets the table filter, a boolean false is passed by the table gui. More... | |
hideSubForm () | |
openIntervalsAllowed () | |
setAllowOpenIntervals (bool $allowOpenInterval) | |
getTableFilterLabelFor () | |
Get label "for" attribute value. More... | |
getFormLabelFor () | |
![]() | |
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... | |
Protected Member Functions | |
getDatePickerTimeFormat () | |
getDatetimeFormatForInput () | |
prepareInvalidInputAsValue (string $invalid_input) | |
![]() | |
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) | |
Additional Inherited Members | |
![]() | |
static | removeProhibitedCharacters (string $a_text) |
Remove prohibited characters see #19159. More... | |
input GUI for a time span (start and end date)
Definition at line 26 of file class.ilDateDurationInputGUI.php.
ilDateDurationInputGUI::__construct | ( | string | $a_title = "" , |
string | $a_postvar = "" |
||
) |
Definition at line 44 of file class.ilDateDurationInputGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), ilFormPropertyGUI\setType(), and ILIAS\Repository\user().
ilDateDurationInputGUI::checkInput | ( | ) |
Definition at line 206 of file class.ilDateDurationInputGUI.php.
References $end, ilFormPropertyGUI\$lng, $post, $start, $valid, ilDateTime\_after(), ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getDatePickerTimeFormat(), ilFormPropertyGUI\getDisabled(), getEnd(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getStart(), getStartYear(), IL_CAL_FKT_DATE, openIntervalsAllowed(), ilCalendarUtil\parseIncomingDate(), ilFormPropertyGUI\setAlert(), setEnd(), setStart(), ilFormPropertyGUI\strArray(), and ilLanguage\txt().
ilDateDurationInputGUI::enabledToggleFullTime | ( | ) |
Definition at line 66 of file class.ilDateDurationInputGUI.php.
References $toggle_fulltime.
Referenced by render().
ilDateDurationInputGUI::enableToggleFullTime | ( | string | $a_title, |
bool | $a_checked | ||
) |
Definition at line 57 of file class.ilDateDurationInputGUI.php.
|
protected |
Definition at line 311 of file class.ilDateDurationInputGUI.php.
References getShowTime().
Referenced by checkInput(), and setValueByArray().
|
protected |
Definition at line 316 of file class.ilDateDurationInputGUI.php.
References getShowTime().
Referenced by prepareInvalidInputAsValue(), and render().
ilDateDurationInputGUI::getEnd | ( | ) |
Definition at line 124 of file class.ilDateDurationInputGUI.php.
References $end.
Referenced by checkInput(), ilCmiXapiDateDurationInputGUI\getEndXapiDateTime(), getInput(), ilCmiXapiDateDurationInputGUI\getValue(), getValue(), hideSubForm(), and render().
ilDateDurationInputGUI::getEndText | ( | ) |
Definition at line 100 of file class.ilDateDurationInputGUI.php.
References $end_text.
Referenced by render().
ilDateDurationInputGUI::getFormLabelFor | ( | ) |
Definition at line 516 of file class.ilDateDurationInputGUI.php.
References ilFormPropertyGUI\getFieldId().
ilDateDurationInputGUI::getInput | ( | ) |
Definition at line 288 of file class.ilDateDurationInputGUI.php.
References getEnd(), ilFormPropertyGUI\getPostVar(), getStart(), null, openIntervalsAllowed(), and ilFormPropertyGUI\strArray().
ilDateDurationInputGUI::getMinuteStepSize | ( | ) |
Fixed to one minute increments, see https://mantis.ilias.de/view.php?id=42740.
Definition at line 162 of file class.ilDateDurationInputGUI.php.
ilDateDurationInputGUI::getShowTime | ( | ) |
Definition at line 134 of file class.ilDateDurationInputGUI.php.
References $showtime.
Referenced by getDatePickerTimeFormat(), getDatetimeFormatForInput(), and render().
ilDateDurationInputGUI::getStart | ( | ) |
Definition at line 105 of file class.ilDateDurationInputGUI.php.
References $start.
Referenced by checkInput(), getInput(), ilCmiXapiDateDurationInputGUI\getStartXapiDateTime(), ilCmiXapiDateDurationInputGUI\getValue(), getValue(), hideSubForm(), and render().
ilDateDurationInputGUI::getStartText | ( | ) |
Definition at line 90 of file class.ilDateDurationInputGUI.php.
References $start_text.
Referenced by render().
ilDateDurationInputGUI::getStartYear | ( | ) |
Definition at line 144 of file class.ilDateDurationInputGUI.php.
References $startyear.
Referenced by checkInput(), and render().
ilDateDurationInputGUI::getTableFilterHTML | ( | ) |
Get input item HTML to be inserted into table filters.
Implements ilTableFilterItem.
Definition at line 463 of file class.ilDateDurationInputGUI.php.
References render().
ilDateDurationInputGUI::getTableFilterLabelFor | ( | ) |
Get label "for" attribute value.
Implements ilTableFilterItem.
Definition at line 511 of file class.ilDateDurationInputGUI.php.
References ilFormPropertyGUI\getFieldId().
ilDateDurationInputGUI::getValue | ( | ) |
Definition at line 468 of file class.ilDateDurationInputGUI.php.
References getEnd(), getStart(), IL_CAL_UNIX, and null.
ilDateDurationInputGUI::hideSubForm | ( | ) |
Definition at line 490 of file class.ilDateDurationInputGUI.php.
References getEnd(), and getStart().
ilDateDurationInputGUI::insert | ( | ilTemplate | $a_tpl | ) |
Definition at line 454 of file class.ilDateDurationInputGUI.php.
References ilTemplate\parseCurrentBlock(), render(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
ilDateDurationInputGUI::openIntervalsAllowed | ( | ) |
Definition at line 501 of file class.ilDateDurationInputGUI.php.
References $allowOpenIntervals.
Referenced by checkInput(), getInput(), and setValueByArray().
|
protected |
Definition at line 444 of file class.ilDateDurationInputGUI.php.
References $timestamp, and getDatetimeFormatForInput().
Referenced by render().
ilDateDurationInputGUI::render | ( | ) |
Definition at line 325 of file class.ilDateDurationInputGUI.php.
References ilFormPropertyGUI\$lng, ilFormPropertyGUI\$type, $user, enabledToggleFullTime(), getDatetimeFormatForInput(), ilFormPropertyGUI\getDisabled(), getEnd(), getEndText(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getShowTime(), getStart(), getStartText(), getStartYear(), IL_CAL_FKT_DATE, null, ilLegacyFormElementsUtil\prepareFormOutput(), prepareInvalidInputAsValue(), setShowTime(), and ilLanguage\txt().
Referenced by getTableFilterHTML(), and insert().
ilDateDurationInputGUI::setAllowOpenIntervals | ( | bool | $allowOpenInterval | ) |
Definition at line 506 of file class.ilDateDurationInputGUI.php.
ilDateDurationInputGUI::setEnd | ( | ?ilDateTime | $a_date = null | ) |
Set end 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 119 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), setValue(), ILIAS\LegalDocuments\Legacy\ResettingDurationInputGUI\setValueByArray(), and setValueByArray().
ilDateDurationInputGUI::setEndText | ( | string | $a_txt | ) |
Definition at line 95 of file class.ilDateDurationInputGUI.php.
ilDateDurationInputGUI::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 154 of file class.ilDateDurationInputGUI.php.
ilDateDurationInputGUI::setShowTime | ( | bool | $a_showtime | ) |
Definition at line 129 of file class.ilDateDurationInputGUI.php.
Referenced by render().
ilDateDurationInputGUI::setStart | ( | ?ilDateTime | $a_date = null | ) |
Set start 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 80 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), setValue(), ILIAS\LegalDocuments\Legacy\ResettingDurationInputGUI\setValueByArray(), and setValueByArray().
ilDateDurationInputGUI::setStartText | ( | string | $a_txt | ) |
Definition at line 85 of file class.ilDateDurationInputGUI.php.
ilDateDurationInputGUI::setStartYear | ( | int | $a_year | ) |
Definition at line 139 of file class.ilDateDurationInputGUI.php.
ilDateDurationInputGUI::setValue | ( | $value | ) |
Called from table gui with the stored session value Attention: If the user resets the table filter, a boolean false is passed by the table gui.
array | bool | $value |
ilDateTimeException |
Definition at line 482 of file class.ilDateDurationInputGUI.php.
References IL_CAL_UNIX, setEnd(), and setStart().
ilDateDurationInputGUI::setValueByArray | ( | array | $a_values | ) |
Definition at line 167 of file class.ilDateDurationInputGUI.php.
References getDatePickerTimeFormat(), ilFormPropertyGUI\getPostVar(), ilSubEnabledFormPropertyGUI\getSubItems(), IL_CAL_UNIX, null, openIntervalsAllowed(), ilCalendarUtil\parseIncomingDate(), setEnd(), and setStart().
|
protected |
Definition at line 40 of file class.ilDateDurationInputGUI.php.
Referenced by openIntervalsAllowed().
|
protected |
Definition at line 35 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), and getEnd().
|
protected |
Definition at line 33 of file class.ilDateDurationInputGUI.php.
Referenced by getEndText().
|
protected |
Definition at line 42 of file class.ilDateDurationInputGUI.php.
|
protected |
Definition at line 41 of file class.ilDateDurationInputGUI.php.
|
protected |
Definition at line 34 of file class.ilDateDurationInputGUI.php.
|
protected |
Definition at line 36 of file class.ilDateDurationInputGUI.php.
Referenced by getShowTime().
|
protected |
Definition at line 30 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), and getStart().
|
protected |
Definition at line 32 of file class.ilDateDurationInputGUI.php.
Referenced by getStartText().
Definition at line 31 of file class.ilDateDurationInputGUI.php.
Referenced by getStartYear().
|
protected |
Definition at line 37 of file class.ilDateDurationInputGUI.php.
Referenced by enabledToggleFullTime().
|
protected |
Definition at line 39 of file class.ilDateDurationInputGUI.php.
|
protected |
Definition at line 38 of file class.ilDateDurationInputGUI.php.
|
protected |
Definition at line 28 of file class.ilDateDurationInputGUI.php.
Referenced by render().