ILIAS
Release_4_4_x_branch Revision 61816
|
This class represents a date/time property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. | |
setMode ($mode) | |
Set Display Mode. | |
getMode () | |
Get Display Mode. | |
enableDateActivation ($a_title, $a_postvar, $a_checked=true) | |
Enable date activation. | |
getActivationPostVar () | |
Get activation post var. | |
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)); | |
getDate () | |
Get Date, yyyy-mm-dd. | |
setShowDate ($a_showdate) | |
Set Show Date Information. | |
getShowDate () | |
Get Show Date Information. | |
setShowTime ($a_showtime) | |
Set Show Time Information. | |
getShowTime () | |
Get Show Time Information. | |
setShowEmpty ($a_empty) | |
Set Show Empty Information. | |
getShowEmpty () | |
Get Show Empty Information. | |
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. | |
setShowSeconds ($a_showseconds) | |
Set Show Seconds. | |
getShowSeconds () | |
Get Show Seconds. | |
setValueByArray ($a_values) | |
Set value by array. | |
checkInput () | |
Check input, strip slashes etc. | |
render () | |
Insert property html. | |
insert (&$a_tpl) | |
Insert property html. | |
getTableFilterHTML () | |
Get HTML for table filter. | |
serializeData () | |
serialize data | |
unserializeData ($a_data) | |
unserialize data | |
getPostValueForComparison () | |
parse post value to make it comparable | |
getToolbarHTML () | |
Get HTML for toolbar. | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
addSubItem ($a_item) | |
Add Subitem. | |
getSubItems () | |
Get Subitems. | |
getSubInputItemsRecursive () | |
returns a flat array of possibly existing subitems recursively | |
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. | |
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) | |
setMulti ($a_multi, $a_sortable=false, $a_addremove=true) | |
Set Multi. | |
getMulti () | |
Get Multi. | |
setMultiValues (array $a_values) | |
Set multi values. | |
getMultiValues () | |
Get multi values. | |
getContentOutsideFormTag () | |
Get content that has to reside outside of the parent form tag, e.g. |
Data Fields | |
const | MODE_SELECT = 1 |
const | MODE_INPUT = 2 |
Protected Attributes | |
$mode = null | |
$date_obj = null | |
$date | |
$showdate = true | |
$time = "00:00:00" | |
$showtime = false | |
$showseconds = false | |
$minute_step_size = 1 | |
$show_empty = false | |
$startyear = '' | |
$activation_title = '' | |
$activation_post_var = '' | |
Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
$sub_items = array() | |
Protected Attributes inherited from ilFormPropertyGUI | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false | |
$parentgui | |
$parentform | |
$hidden_title = "" | |
$multi = false | |
$multi_sortable = false | |
$multi_addremove = true | |
$multi_values |
Additional Inherited Members | |
Protected Member Functions inherited from ilFormPropertyGUI | |
setType ($a_type) | |
Set Type. | |
getMultiIconsHTML () | |
Get HTML for multiple value icons. |
This class represents a date/time property in a property form.
Definition at line 12 of file class.ilDateTimeInputGUI.php.
ilDateTimeInputGUI::__construct | ( | $a_title = "" , |
|
$a_postvar = "" |
|||
) |
Constructor.
string | $a_title | Title |
string | $a_postvar | Post Variable |
Reimplemented from ilFormPropertyGUI.
Definition at line 37 of file class.ilDateTimeInputGUI.php.
References setMode(), and ilFormPropertyGUI\setType().
ilDateTimeInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Reimplemented in ilBirthdayInputGUI.
Definition at line 288 of file class.ilDateTimeInputGUI.php.
References $_POST, $date, $ilUser, $lng, $time, ilCalendarSettings\DATE_FORMAT_DMY, ilCalendarSettings\DATE_FORMAT_MDY, ilCalendarSettings\DATE_FORMAT_YMD, ilFormPropertyGUI\getDisabled(), getMode(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getShowSeconds(), getShowTime(), IL_CAL_FKT_DATE, IL_CAL_FKT_GETDATE, ilFormPropertyGUI\setAlert(), setDate(), ilUtil\stripSlashes(), and ilCalendarSettings\TIME_FORMAT_12.
ilDateTimeInputGUI::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 77 of file class.ilDateTimeInputGUI.php.
Referenced by ilObjSurveyGUI\initPropertiesForm().
ilDateTimeInputGUI::getActivationPostVar | ( | ) |
Get activation post var.
public
Definition at line 90 of file class.ilDateTimeInputGUI.php.
References $activation_post_var.
Referenced by ilBirthdayInputGUI\render(), and render().
ilDateTimeInputGUI::getDate | ( | ) |
Get Date, yyyy-mm-dd.
Definition at line 116 of file class.ilDateTimeInputGUI.php.
References $date.
Referenced by ilBirthdayInputGUI\render(), render(), and serializeData().
ilDateTimeInputGUI::getMinuteStepSize | ( | ) |
Get minute step size.
public
Definition at line 220 of file class.ilDateTimeInputGUI.php.
References $minute_step_size.
Referenced by render().
ilDateTimeInputGUI::getMode | ( | ) |
Get Display Mode.
Definition at line 62 of file class.ilDateTimeInputGUI.php.
References $mode.
Referenced by checkInput(), render(), and setValueByArray().
ilDateTimeInputGUI::getPostValueForComparison | ( | ) |
parse post value to make it comparable
used by combination input gui
Definition at line 666 of file class.ilDateTimeInputGUI.php.
References $_POST, and ilFormPropertyGUI\getPostVar().
ilDateTimeInputGUI::getShowDate | ( | ) |
Get Show Date Information.
Definition at line 136 of file class.ilDateTimeInputGUI.php.
References $showdate.
Referenced by ilBirthdayInputGUI\render(), and render().
ilDateTimeInputGUI::getShowEmpty | ( | ) |
Get Show Empty Information.
Definition at line 176 of file class.ilDateTimeInputGUI.php.
References $show_empty.
Referenced by ilBirthdayInputGUI\render(), and render().
ilDateTimeInputGUI::getShowSeconds | ( | ) |
Get Show Seconds.
Definition at line 242 of file class.ilDateTimeInputGUI.php.
References $showseconds.
Referenced by checkInput(), and render().
ilDateTimeInputGUI::getShowTime | ( | ) |
Get Show Time Information.
Definition at line 156 of file class.ilDateTimeInputGUI.php.
References $showtime.
Referenced by checkInput(), and render().
ilDateTimeInputGUI::getStartYear | ( | ) |
Get start year.
Definition at line 196 of file class.ilDateTimeInputGUI.php.
References $startyear.
ilDateTimeInputGUI::getTableFilterHTML | ( | ) |
Get HTML for table filter.
Implements ilTableFilterItem.
Definition at line 634 of file class.ilDateTimeInputGUI.php.
References render().
ilDateTimeInputGUI::getToolbarHTML | ( | ) |
Get HTML for toolbar.
Implements ilToolbarItem.
Definition at line 674 of file class.ilDateTimeInputGUI.php.
References render().
ilDateTimeInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Definition at line 622 of file class.ilDateTimeInputGUI.php.
References render().
ilDateTimeInputGUI::render | ( | ) |
Insert property html.
Reimplemented in ilBirthdayInputGUI.
Definition at line 434 of file class.ilDateTimeInputGUI.php.
References $ilUser, $lng, $tpl, ilCalendarUserSettings\_getInstance(), ilCalendarSettings\DATE_FORMAT_DMY, ilCalendarSettings\DATE_FORMAT_MDY, ilCalendarSettings\DATE_FORMAT_YMD, getActivationPostVar(), getDate(), ilFormPropertyGUI\getDisabled(), ilUtil\getImagePath(), getMinuteStepSize(), getMode(), ilFormPropertyGUI\getPostVar(), getShowDate(), getShowEmpty(), getShowSeconds(), getShowTime(), IL_CAL_DATETIME, IL_CAL_FKT_GETDATE, IL_CAL_UNIX, ilCalendarUtil\initJSCalendar(), ilUtil\makeDateSelect(), ilUtil\makeTimeSelect(), MODE_SELECT, setDate(), and ilCalendarSettings\TIME_FORMAT_12.
Referenced by getTableFilterHTML(), getToolbarHTML(), and insert().
ilDateTimeInputGUI::serializeData | ( | ) |
serialize data
Reimplemented from ilFormPropertyGUI.
Definition at line 643 of file class.ilDateTimeInputGUI.php.
References getDate().
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));
object | $a_date | ilDate or ilDateTime object |
Definition at line 106 of file class.ilDateTimeInputGUI.php.
Referenced by ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilBirthdayInputGUI\checkInput(), checkInput(), ilECSSettingsGUI\initCategoryMappingForm(), ilUserTableGUI\initFilter(), ilCalendarAppointmentGUI\initForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilSessionStatisticsGUI\long(), ilSessionStatisticsGUI\periodic(), render(), ilBirthdayInputGUI\setValueByArray(), setValueByArray(), ilSessionStatisticsGUI\short(), and unserializeData().
ilDateTimeInputGUI::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 209 of file class.ilDateTimeInputGUI.php.
ilDateTimeInputGUI::setMode | ( | $mode | ) |
Set Display Mode.
int | $mode | Display Mode |
Definition at line 49 of file class.ilDateTimeInputGUI.php.
References $mode.
Referenced by __construct().
ilDateTimeInputGUI::setShowDate | ( | $a_showdate | ) |
Set Show Date Information.
boolean | $a_showdate | Show Date Information |
Definition at line 126 of file class.ilDateTimeInputGUI.php.
Referenced by ilObjAssessmentFolderGUI\logsObject().
ilDateTimeInputGUI::setShowEmpty | ( | $a_empty | ) |
Set Show Empty Information.
boolean | Show Empty Information |
Definition at line 166 of file class.ilDateTimeInputGUI.php.
ilDateTimeInputGUI::setShowSeconds | ( | $a_showseconds | ) |
Set Show Seconds.
boolean | $a_showseconds | Show Seconds |
Definition at line 232 of file class.ilDateTimeInputGUI.php.
ilDateTimeInputGUI::setShowTime | ( | $a_showtime | ) |
Set Show Time Information.
boolean | $a_showtime | Show Time Information |
Definition at line 146 of file class.ilDateTimeInputGUI.php.
Referenced by ilObjUserFolderGUI\initAccessRestrictionForm(), ilPageObjectGUI\initActivationForm(), ilObjExerciseGUI\initAssignmentForm(), ilDataCollectionTableEditGUI\initForm(), ilObjUserGUI\initForm(), ilObjectActivationGUI\initFormEdit(), ilObjSearchSettingsGUI\initFormLuceneSettings(), and ilConsultationHoursGUI\initFormSequence().
ilDateTimeInputGUI::setStartYear | ( | $a_year | ) |
Set start year.
integer | Start year |
Definition at line 186 of file class.ilDateTimeInputGUI.php.
Referenced by ilDataCollectionDatatype\getInputField().
ilDateTimeInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Reimplemented in ilBirthdayInputGUI.
Definition at line 252 of file class.ilDateTimeInputGUI.php.
References $ilUser, getMode(), ilFormPropertyGUI\getPostVar(), ilSubEnabledFormPropertyGUI\getSubItems(), IL_CAL_DATE, IL_CAL_DATETIME, and setDate().
ilDateTimeInputGUI::unserializeData | ( | $a_data | ) |
unserialize data
Reimplemented from ilFormPropertyGUI.
Definition at line 651 of file class.ilDateTimeInputGUI.php.
References setDate().
|
protected |
Definition at line 26 of file class.ilDateTimeInputGUI.php.
Referenced by getActivationPostVar().
|
protected |
Definition at line 25 of file class.ilDateTimeInputGUI.php.
|
protected |
Definition at line 16 of file class.ilDateTimeInputGUI.php.
Referenced by ilBirthdayInputGUI\checkInput(), checkInput(), and getDate().
|
protected |
Definition at line 15 of file class.ilDateTimeInputGUI.php.
|
protected |
Definition at line 21 of file class.ilDateTimeInputGUI.php.
Referenced by getMinuteStepSize().
|
protected |
Definition at line 14 of file class.ilDateTimeInputGUI.php.
|
protected |
Definition at line 22 of file class.ilDateTimeInputGUI.php.
Referenced by getShowEmpty().
|
protected |
Definition at line 17 of file class.ilDateTimeInputGUI.php.
Referenced by getShowDate().
|
protected |
Definition at line 20 of file class.ilDateTimeInputGUI.php.
Referenced by getShowSeconds().
|
protected |
Definition at line 19 of file class.ilDateTimeInputGUI.php.
Referenced by getShowTime().
|
protected |
Definition at line 23 of file class.ilDateTimeInputGUI.php.
Referenced by getStartYear().
|
protected |
Definition at line 18 of file class.ilDateTimeInputGUI.php.
Referenced by checkInput().
const ilDateTimeInputGUI::MODE_INPUT = 2 |
Definition at line 29 of file class.ilDateTimeInputGUI.php.
Referenced by ilTable2GUI\addFilterItemByMetaType(), and ilAdvancedMDRecordGUI\parseFilter().
const ilDateTimeInputGUI::MODE_SELECT = 1 |
Definition at line 28 of file class.ilDateTimeInputGUI.php.
Referenced by ilTestSettingsChangeConfirmationGUI\populateParametersFromPropertyForm(), and render().