|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
input GUI for a time span (start and end date) More...
Inheritance diagram for ilDateDurationInputGUI:
Collaboration diagram for ilDateDurationInputGUI:Public Member Functions | |
| __construct ($a_title="", $a_postvar="") | |
| Constructor. More... | |
| enableToggleFullTime ($a_title, $a_checked) | |
| Enable toggling between date and time. More... | |
| enabledToggleFullTime () | |
| Check if toggling between date and time enabled. More... | |
| 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 ($a_txt) | |
| Set text, which will be shown before the start date. More... | |
| getStartText () | |
| get start text More... | |
| setEndText ($a_txt) | |
| Set text, which will be shown before the end date. More... | |
| getEndText () | |
| Get end text. More... | |
| getStart () | |
| Get Date, yyyy-mm-dd. More... | |
| 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 () | |
| Get Date, yyyy-mm-dd. More... | |
| setShowTime ($a_showtime) | |
| Set Show Time Information. More... | |
| getShowTime () | |
| Get Show Time Information. More... | |
| getShowSeconds () | |
| Show seconds not implemented yet. 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... | |
| setValueByArray ($a_values) | |
| Set value by array. More... | |
| checkInput () | |
| Check input, strip slashes etc. More... | |
| render () | |
| Insert property html. More... | |
| insert ($a_tpl) | |
| Insert property html. More... | |
| getTableFilterHTML () | |
| Used for table filter presentation. More... | |
| getValue () | |
| Used for storing the date duration data in session for table gui filters. More... | |
| 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 () | |
| Sub form hidden on init? More... | |
| openIntervalsAllowed () | |
| setAllowOpenIntervals (bool $allowOpenInterval) | |
| getTableFilterLabelFor () | |
| @inheritDoc More... | |
| getFormLabelFor () | |
| @inheritDoc 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... | |
| getTableFilterHTML () | |
| Get input item HTML to be inserted into table filters. More... | |
| getTableFilterLabelFor () | |
| Get label "for" attribute value. 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 | |
| $start = null | |
| $startyear = null | |
| $start_text = null | |
| $end_text = null | |
| $minute_step_size = 5 | |
| $end = null | |
| $showtime = false | |
| $toggle_fulltime = false | |
| $toggle_fulltime_txt = '' | |
| $toggle_fulltime_checked = false | |
| $allowOpenIntervals = false | |
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... | |
input GUI for a time span (start and end date)
Definition at line 14 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::__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.ilDateDurationInputGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilFormPropertyGUI\setType(), and user().
Here is the call graph for this function:| ilDateDurationInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Definition at line 279 of file class.ilDateDurationInputGUI.php.
References $_POST, $end, $format, $lng, $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(), and setStart().
Here is the call graph for this function:| ilDateDurationInputGUI::enabledToggleFullTime | ( | ) |
Check if toggling between date and time enabled.
Definition at line 71 of file class.ilDateDurationInputGUI.php.
References $toggle_fulltime.
Referenced by render().
Here is the caller graph for this function:| ilDateDurationInputGUI::enableToggleFullTime | ( | $a_title, | |
| $a_checked | |||
| ) |
Enable toggling between date and time.
| object | $a_title | |
| object | $a_checked |
Definition at line 60 of file class.ilDateDurationInputGUI.php.
|
protected |
Definition at line 391 of file class.ilDateDurationInputGUI.php.
References getShowSeconds(), and getShowTime().
Referenced by checkInput(), render(), and setValueByArray().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDateDurationInputGUI::getEnd | ( | ) |
Get Date, yyyy-mm-dd.
Definition at line 161 of file class.ilDateDurationInputGUI.php.
References $end.
Referenced by checkInput(), ilCmiXapiDateDurationInputGUI\getEndXapiDateTime(), ilCmiXapiDateDurationInputGUI\getValue(), getValue(), hideSubForm(), and render().
Here is the caller graph for this function:| ilDateDurationInputGUI::getEndText | ( | ) |
Get end text.
Definition at line 125 of file class.ilDateDurationInputGUI.php.
References $end_text.
Referenced by render().
Here is the caller graph for this function:| ilDateDurationInputGUI::getFormLabelFor | ( | ) |
@inheritDoc
Reimplemented from ilFormPropertyGUI.
Definition at line 611 of file class.ilDateDurationInputGUI.php.
References ilFormPropertyGUI\getFieldId().
Here is the call graph for this function:| ilDateDurationInputGUI::getMinuteStepSize | ( | ) |
Get minute step size.
@access public
Definition at line 234 of file class.ilDateDurationInputGUI.php.
References $minute_step_size.
Referenced by parseDatePickerConfig().
Here is the caller graph for this function:| ilDateDurationInputGUI::getShowSeconds | ( | ) |
Show seconds not implemented yet.
Definition at line 190 of file class.ilDateDurationInputGUI.php.
Referenced by getDatePickerTimeFormat().
Here is the caller graph for this function:| ilDateDurationInputGUI::getShowTime | ( | ) |
Get Show Time Information.
Definition at line 181 of file class.ilDateDurationInputGUI.php.
References $showtime.
Referenced by getDatePickerTimeFormat().
Here is the caller graph for this function:| ilDateDurationInputGUI::getStart | ( | ) |
Get Date, yyyy-mm-dd.
Definition at line 135 of file class.ilDateDurationInputGUI.php.
References $start.
Referenced by checkInput(), ilCmiXapiDateDurationInputGUI\getStartXapiDateTime(), ilCmiXapiDateDurationInputGUI\getValue(), getValue(), hideSubForm(), and render().
Here is the caller graph for this function:| ilDateDurationInputGUI::getStartText | ( | ) |
get start text
Definition at line 106 of file class.ilDateDurationInputGUI.php.
References $start_text.
Referenced by render().
Here is the caller graph for this function:| ilDateDurationInputGUI::getStartYear | ( | ) |
Get start year.
Definition at line 210 of file class.ilDateDurationInputGUI.php.
References $startyear.
Referenced by checkInput(), and parseDatePickerConfig().
Here is the caller graph for this function:| ilDateDurationInputGUI::getTableFilterHTML | ( | ) |
Used for table filter presentation.
Implements ilTableFilterItem.
Definition at line 542 of file class.ilDateDurationInputGUI.php.
References render().
Here is the call graph for this function:| ilDateDurationInputGUI::getTableFilterLabelFor | ( | ) |
@inheritDoc
Implements ilTableFilterItem.
Definition at line 603 of file class.ilDateDurationInputGUI.php.
References ilFormPropertyGUI\getFieldId().
Here is the call graph for this function:| ilDateDurationInputGUI::getValue | ( | ) |
Used for storing the date duration data in session for table gui filters.
Reimplemented in ilCmiXapiDateDurationInputGUI.
Definition at line 551 of file class.ilDateDurationInputGUI.php.
References getEnd(), getStart(), and IL_CAL_UNIX.
Here is the call graph for this function:| ilDateDurationInputGUI::hideSubForm | ( | ) |
Sub form hidden on init?
Reimplemented from ilFormPropertyGUI.
Definition at line 573 of file class.ilDateDurationInputGUI.php.
References getEnd(), and getStart().
Here is the call graph for this function:| ilDateDurationInputGUI::insert | ( | $a_tpl | ) |
Insert property html.
Definition at line 529 of file class.ilDateDurationInputGUI.php.
References render().
Here is the call graph for this function:| ilDateDurationInputGUI::openIntervalsAllowed | ( | ) |
Definition at line 587 of file class.ilDateDurationInputGUI.php.
References $allowOpenIntervals.
Referenced by checkInput(), and setValueByArray().
Here is the caller graph for this function:
|
protected |
parse properties to datepicker config
Definition at line 401 of file class.ilDateDurationInputGUI.php.
References $config, getMinuteStepSize(), and getStartYear().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDateDurationInputGUI::render | ( | ) |
Insert property html.
Definition at line 417 of file class.ilDateDurationInputGUI.php.
References $ilUser, $lng, $tpl, $user, ilCalendarUtil\addDateTimePicker(), enabledToggleFullTime(), getDatePickerTimeFormat(), ilFormPropertyGUI\getDisabled(), getEnd(), getEndText(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getStart(), getStartText(), ilCalendarUtil\getUserDateFormat(), IL_CAL_FKT_DATE, parseDatePickerConfig(), ilUtil\prepareFormOutput(), and setShowTime().
Referenced by getTableFilterHTML(), and insert().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDateDurationInputGUI::setAllowOpenIntervals | ( | bool | $allowOpenInterval | ) |
| bool | $allowOpenInterval |
Definition at line 595 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));
| object | $a_date | ilDate or ilDateTime object |
Definition at line 151 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), setValue(), and setValueByArray().
Here is the caller graph for this function:| ilDateDurationInputGUI::setEndText | ( | $a_txt | ) |
Set text, which will be shown before the end date.
| object | $a_txt |
Definition at line 116 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::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 223 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::setShowTime | ( | $a_showtime | ) |
Set Show Time Information.
| boolean | $a_showtime | Show Time Information |
Definition at line 171 of file class.ilDateDurationInputGUI.php.
Referenced by render().
Here is the caller graph for this function:| 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));
| object | $a_date | ilDate or ilDateTime object |
Definition at line 87 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), setValue(), and setValueByArray().
Here is the caller graph for this function:| ilDateDurationInputGUI::setStartText | ( | $a_txt | ) |
Set text, which will be shown before the start date.
| object | $a_txt |
Definition at line 97 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::setStartYear | ( | $a_year | ) |
Set start year.
| integer | Start year |
Definition at line 200 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 |
Definition at line 565 of file class.ilDateDurationInputGUI.php.
References IL_CAL_UNIX, setEnd(), and setStart().
Here is the call graph for this function:| ilDateDurationInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
| array | $a_values | value array |
Definition at line 244 of file class.ilDateDurationInputGUI.php.
References $format, getDatePickerTimeFormat(), ilFormPropertyGUI\getPostVar(), ilSubEnabledFormPropertyGUI\getSubItems(), IL_CAL_UNIX, openIntervalsAllowed(), ilCalendarUtil\parseIncomingDate(), setEnd(), and setStart().
Here is the call graph for this function:
|
protected |
Definition at line 36 of file class.ilDateDurationInputGUI.php.
Referenced by openIntervalsAllowed().
|
protected |
Definition at line 31 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), and getEnd().
|
protected |
Definition at line 29 of file class.ilDateDurationInputGUI.php.
Referenced by getEndText().
|
protected |
Definition at line 19 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), and render().
|
protected |
Definition at line 30 of file class.ilDateDurationInputGUI.php.
Referenced by getMinuteStepSize().
|
protected |
Definition at line 32 of file class.ilDateDurationInputGUI.php.
Referenced by getShowTime().
|
protected |
Definition at line 26 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), and getStart().
|
protected |
Definition at line 28 of file class.ilDateDurationInputGUI.php.
Referenced by getStartText().
|
protected |
Definition at line 27 of file class.ilDateDurationInputGUI.php.
Referenced by getStartYear().
|
protected |
Definition at line 33 of file class.ilDateDurationInputGUI.php.
Referenced by enabledToggleFullTime().
|
protected |
Definition at line 35 of file class.ilDateDurationInputGUI.php.
|
protected |
Definition at line 34 of file class.ilDateDurationInputGUI.php.
|
protected |
Definition at line 24 of file class.ilDateDurationInputGUI.php.
Referenced by render().