| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
input GUI for a time span (start and end date) More...
 Inheritance diagram for ilDateDurationInputGUI:
 Inheritance diagram for ilDateDurationInputGUI: Collaboration diagram for ilDateDurationInputGUI:
 Collaboration diagram for ilDateDurationInputGUI:| Public Member Functions | |
| __construct ($a_title="", $a_postvar="") | |
| Constructor. | |
| enableDateActivation ($a_title, $a_postvar, $a_checked=true) | |
| Enable date activation. | |
| enableToggleFullTime ($a_title, $a_checked) | |
| Enable toggling between date and time. | |
| enabledToggleFullTime () | |
| Check if toggling between date and time enabled. | |
| getActivationPostVar () | |
| Get activation post var. | |
| setStart (ilDateTime $a_date) | |
| 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));. | |
| setStartText ($a_txt) | |
| Set text, which will be shown before the start date. | |
| getStartText () | |
| get start text | |
| setEndText ($a_txt) | |
| Set text, which will be shown before the end date. | |
| getEndText () | |
| Get end text. | |
| getStart () | |
| Get Date, yyyy-mm-dd. | |
| setEnd (ilDateTime $a_date) | |
| 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));. | |
| getEnd () | |
| Get Date, yyyy-mm-dd. | |
| setShowDate ($a_showdate) | |
| Set Show Date Information. | |
| getShowDate () | |
| Get Show Date Information. | |
| setShowEmpty ($a_empty) | |
| Set Show Empty Information. | |
| getShowEmpty () | |
| Get Show Empty Information. | |
| setShowTime ($a_showtime) | |
| Set Show Time Information. | |
| getShowTime () | |
| Get Show Time Information. | |
| getShowSeconds () | |
| Show seconds not implemented yet. | |
| setStartYear ($a_year) | |
| Set start year. | |
| getStartYear () | |
| Get start year. | |
| setMinuteStepSize ($a_step_size) | |
| Set minute step size E.g 5 => The selection will only show 00,05,10... | |
| getMinuteStepSize () | |
| Get minute step size. | |
| setValueByArray ($a_values) | |
| Set value by array. | |
| checkInput () | |
| Check input, strip slashes etc. | |
| render () | |
| Insert property html. | |
| insert (&$a_tpl) | |
| Insert property html. | |
|  Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
| addSubItem ($a_item) | |
| Add Subitem. | |
| getSubItems () | |
| Get Subitems. | |
| checkSubItemsInput () | |
| Check SubItems. | |
| getSubForm () | |
| Get sub form html. | |
| getItemByPostVar ($a_post_var) | |
| Get item by post var. | |
|  Public Member Functions inherited from ilFormPropertyGUI | |
| & | executeCommand () | 
| Execute command. | |
| getType () | |
| Get Type. | |
| setTitle ($a_title) | |
| Set Title. | |
| getTitle () | |
| Get Title. | |
| setPostVar ($a_postvar) | |
| Set Post Variable. | |
| getPostVar () | |
| Get Post Variable. | |
| getFieldId () | |
| Get Post Variable. | |
| setInfo ($a_info) | |
| Set Information Text. | |
| getInfo () | |
| Get Information Text. | |
| setAlert ($a_alert) | |
| Set Alert Text. | |
| getAlert () | |
| Get Alert Text. | |
| setRequired ($a_required) | |
| Set Required. | |
| getRequired () | |
| Get Required. | |
| setDisabled ($a_disabled) | |
| Set Disabled. | |
| getDisabled () | |
| Get Disabled. | |
| setParentForm ($a_parentform) | |
| Set Parent Form. | |
| getParentForm () | |
| Get Parent Form. | |
| setParent ($a_val) | |
| Set Parent GUI object. | |
| getParent () | |
| Get Parent GUI object. | |
| hideSubForm () | |
| Sub form hidden on init? | |
| setHiddenTitle ($a_val) | |
| Set hidden title (for screenreaders) | |
| getHiddenTitle () | |
| Get hidden title. | |
| serializeData () | |
| serialize data | |
| unserializeData ($a_data) | |
| unserialize data | |
| writeToSession () | |
| Write to session. | |
| clearFromSession () | |
| Clear session value. | |
| readFromSession () | |
| Read from session. | |
| getHiddenTag ($a_post_var, $a_value) | |
| Get hidden tag (used for disabled properties) | |
| Protected Attributes | |
| $start = null | |
| $start_year = null | |
| $start_text = '' | |
| $end_text = '' | |
| $minute_step_size = 5 | |
| $end = null | |
| $activation_title = '' | |
| Activation full day events. | |
| $activation_post_var = '' | |
| $activation_checked = true | |
| $toggle_fulltime = false | |
| Toggle datetime. | |
| $toggle_fulltime_txt = '' | |
| $toggle_fulltime_checked = false | |
| $show_date = true | |
| $show_empty = false | |
| $show_time = true | |
|  Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
| $sub_items = array() | |
|  Protected Attributes inherited from ilFormPropertyGUI | |
| $type | |
| $title | |
| $postvar | |
| $info | |
| $alert | |
| $required = false | |
| $parentgui | |
| $parentform | |
| $hidden_title = "" | |
| Additional Inherited Members | |
|  Protected Member Functions inherited from ilFormPropertyGUI | |
| setType ($a_type) | |
| Set Type. | |
input GUI for a time span (start and end date)
Definition at line 12 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 47 of file class.ilDateDurationInputGUI.php.
References ilFormPropertyGUI\setType().
 Here is the call graph for this function:
 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 353 of file class.ilDateDurationInputGUI.php.
References $_POST, $lng, $ok, $timestamp, ilDateTime\get(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getPostVar(), IL_CAL_FKT_DATE, IL_CAL_FKT_GETDATE, IL_CAL_UNIX, ilFormPropertyGUI\setAlert(), setEnd(), setStart(), and ilUtil\stripSlashes().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilDateDurationInputGUI::enableDateActivation | ( | $a_title, | |
| $a_postvar, | |||
| $a_checked = true | |||
| ) | 
Enable date activation.
If chosen a checkbox will be shown that gives the possibility to en/disable the date selection.
public
| string | text displayed after the checkbox | 
| string | name of postvar | 
| bool | checkbox checked | 
Definition at line 63 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::enabledToggleFullTime | ( | ) | 
Check if toggling between date and time enabled.
Definition at line 87 of file class.ilDateDurationInputGUI.php.
References $toggle_fulltime.
Referenced by render().
 Here is the caller graph for this function:
 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 76 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::getActivationPostVar | ( | ) | 
Get activation post var.
public
Definition at line 98 of file class.ilDateDurationInputGUI.php.
References $activation_post_var.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getEnd | ( | ) | 
Get Date, yyyy-mm-dd.
Definition at line 188 of file class.ilDateDurationInputGUI.php.
References $end.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getEndText | ( | ) | 
Get end text.
Definition at line 152 of file class.ilDateDurationInputGUI.php.
References $end_text.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getMinuteStepSize | ( | ) | 
Get minute step size.
public
Definition at line 302 of file class.ilDateDurationInputGUI.php.
References $minute_step_size.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getShowDate | ( | ) | 
Get Show Date Information.
Definition at line 208 of file class.ilDateDurationInputGUI.php.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getShowEmpty | ( | ) | 
Get Show Empty Information.
Definition at line 228 of file class.ilDateDurationInputGUI.php.
References $show_empty.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getShowSeconds | ( | ) | 
Show seconds not implemented yet.
Definition at line 258 of file class.ilDateDurationInputGUI.php.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getShowTime | ( | ) | 
Get Show Time Information.
Definition at line 249 of file class.ilDateDurationInputGUI.php.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getStart | ( | ) | 
Get Date, yyyy-mm-dd.
Definition at line 162 of file class.ilDateDurationInputGUI.php.
References $start.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getStartText | ( | ) | 
get start text
Definition at line 133 of file class.ilDateDurationInputGUI.php.
References $start_text.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::getStartYear | ( | ) | 
Get start year.
Definition at line 278 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::insert | ( | & | $a_tpl | ) | 
Insert property html.
Definition at line 601 of file class.ilDateDurationInputGUI.php.
References render().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilDateDurationInputGUI::render | ( | ) | 
Insert property html.
Definition at line 444 of file class.ilDateDurationInputGUI.php.
References $lng, $tpl, ilCalendarUserSettings\_getInstance(), enabledToggleFullTime(), getActivationPostVar(), ilFormPropertyGUI\getDisabled(), getEnd(), getEndText(), ilUtil\getImagePath(), getMinuteStepSize(), ilFormPropertyGUI\getPostVar(), getShowDate(), getShowEmpty(), getShowSeconds(), getShowTime(), getStart(), getStartText(), IL_CAL_FKT_GETDATE, IL_CAL_UNIX, ilCalendarUtil\initJSCalendar(), ilUtil\makeDateSelect(), ilUtil\makeTimeSelect(), setEnd(), and setStart().
Referenced by insert().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::setEnd | ( | ilDateTime | $a_date | ) | 
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 178 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), render(), and setValueByArray().
 Here is the caller graph for this function:
 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 143 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
public
| int | minute step_size 1,5,10,15,20... | 
Definition at line 291 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::setShowDate | ( | $a_showdate | ) | 
Set Show Date Information.
| boolean | $a_showdate | Show Date Information | 
Definition at line 198 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::setShowEmpty | ( | $a_empty | ) | 
Set Show Empty Information.
| boolean | Show Empty Information | 
Definition at line 218 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::setShowTime | ( | $a_showtime | ) | 
Set Show Time Information.
| boolean | $a_showtime | Show Time Information | 
Definition at line 239 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::setStart | ( | ilDateTime | $a_date | ) | 
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 114 of file class.ilDateDurationInputGUI.php.
Referenced by checkInput(), render(), and setValueByArray().
 Here is the caller graph for this function:
 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 124 of file class.ilDateDurationInputGUI.php.
Referenced by ilCalendarAppointmentGUI\initForm(), ilObjSessionGUI\initForm(), and ilObjGroupGUI\initForm().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDateDurationInputGUI::setStartYear | ( | $a_year | ) | 
Set start year.
| integer | Start year | 
Definition at line 268 of file class.ilDateDurationInputGUI.php.
| ilDateDurationInputGUI::setValueByArray | ( | $a_values | ) | 
Set value by array.
| array | $a_values | value array | 
Definition at line 312 of file class.ilDateDurationInputGUI.php.
References ilFormPropertyGUI\getPostVar(), ilSubEnabledFormPropertyGUI\getSubItems(), IL_CAL_DATE, IL_CAL_DATETIME, setEnd(), and setStart().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 28 of file class.ilDateDurationInputGUI.php.
| 
 | protected | 
Definition at line 27 of file class.ilDateDurationInputGUI.php.
Referenced by getActivationPostVar().
| 
 | protected | 
Activation full day events.
Definition at line 26 of file class.ilDateDurationInputGUI.php.
| 
 | protected | 
Definition at line 21 of file class.ilDateDurationInputGUI.php.
Referenced by getEnd().
| 
 | protected | 
Definition at line 18 of file class.ilDateDurationInputGUI.php.
Referenced by getEndText().
| 
 | protected | 
Definition at line 20 of file class.ilDateDurationInputGUI.php.
Referenced by getMinuteStepSize().
| 
 | protected | 
Definition at line 37 of file class.ilDateDurationInputGUI.php.
| 
 | protected | 
Definition at line 38 of file class.ilDateDurationInputGUI.php.
Referenced by getShowEmpty().
| 
 | protected | 
Definition at line 39 of file class.ilDateDurationInputGUI.php.
| 
 | protected | 
Definition at line 14 of file class.ilDateDurationInputGUI.php.
Referenced by getStart().
| 
 | protected | 
Definition at line 17 of file class.ilDateDurationInputGUI.php.
Referenced by getStartText().
| 
 | protected | 
Definition at line 15 of file class.ilDateDurationInputGUI.php.
| 
 | protected | 
Toggle datetime.
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.