ILIAS
Release_3_10_x_branch Revision 61812
|
This class represents a date/time property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. | |
enableDateActivation ($a_title, $a_postvar, $a_checked=true) | |
Enable date activation. | |
getActivationPostVar () | |
Get activation post var. | |
setDate (ilDateTime $a_date) | |
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. | |
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. | |
insert (&$a_tpl) | |
Insert property html. | |
![]() | |
addSubItem ($a_item) | |
Add Subitem. | |
getSubItems () | |
Get Subitems. | |
setSubformMode ($a_subformmode) | |
Set Subform Mode. | |
getSubformMode () | |
Get Subform Mode. | |
checkSubItemsInput () | |
Check SubItems. | |
getSubForm () | |
Get sub form html. | |
![]() | |
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. |
Protected Attributes | |
$date_obj = null | |
$date | |
$showdate = true | |
$time = "00:00:00" | |
$showtime = false | |
$showseconds = false | |
$minute_step_size = 1 | |
$activation_title = '' | |
$activation_post_var = '' | |
![]() | |
$sub_items = array() | |
$subformmode = "bottom" | |
![]() | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false |
Additional Inherited Members | |
![]() | |
setType ($a_type) | |
Set Type. |
This class represents a date/time property in a property form.
Definition at line 31 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 50 of file class.ilDateTimeInputGUI.php.
References ilFormPropertyGUI\setType().
ilDateTimeInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Definition at line 226 of file class.ilDateTimeInputGUI.php.
References $date, $lng, $ok, $timestamp, ilFormPropertyGUI\getPostVar(), IL_CAL_FKT_DATE, IL_CAL_FKT_GETDATE, IL_CAL_UNIX, ilFormPropertyGUI\setAlert(), setDate(), and ilUtil\stripSlashes().
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 66 of file class.ilDateTimeInputGUI.php.
ilDateTimeInputGUI::getActivationPostVar | ( | ) |
Get activation post var.
public
Definition at line 79 of file class.ilDateTimeInputGUI.php.
References $activation_post_var.
Referenced by insert().
ilDateTimeInputGUI::getDate | ( | ) |
Get Date, yyyy-mm-dd.
Definition at line 105 of file class.ilDateTimeInputGUI.php.
References $date.
Referenced by insert().
ilDateTimeInputGUI::getMinuteStepSize | ( | ) |
Get minute step size.
public
Definition at line 169 of file class.ilDateTimeInputGUI.php.
References $minute_step_size.
Referenced by insert().
ilDateTimeInputGUI::getShowDate | ( | ) |
Get Show Date Information.
Definition at line 125 of file class.ilDateTimeInputGUI.php.
References $showdate.
Referenced by insert().
ilDateTimeInputGUI::getShowSeconds | ( | ) |
Get Show Seconds.
Definition at line 191 of file class.ilDateTimeInputGUI.php.
References $showseconds.
Referenced by insert().
ilDateTimeInputGUI::getShowTime | ( | ) |
Get Show Time Information.
Definition at line 145 of file class.ilDateTimeInputGUI.php.
References $showtime.
Referenced by insert().
ilDateTimeInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Definition at line 285 of file class.ilDateTimeInputGUI.php.
References $lng, getActivationPostVar(), getDate(), ilFormPropertyGUI\getDisabled(), ilUtil\getImagePath(), getMinuteStepSize(), ilFormPropertyGUI\getPostVar(), getShowDate(), getShowSeconds(), getShowTime(), IL_CAL_FKT_GETDATE, IL_CAL_UNIX, ilCalendarUtil\initJSCalendar(), ilUtil\makeDateSelect(), ilUtil\makeTimeSelect(), and setDate().
ilDateTimeInputGUI::setDate | ( | ilDateTime | $a_date | ) |
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 95 of file class.ilDateTimeInputGUI.php.
Referenced by checkInput(), ilObjRemoteCourseGUI\initEditTable(), ilCalendarAppointmentGUI\initForm(), ilNewsForContextBlockGUI\initSettingsForm(), insert(), and setValueByArray().
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 158 of file class.ilDateTimeInputGUI.php.
Referenced by ilObjSessionGUI\initForm().
ilDateTimeInputGUI::setShowDate | ( | $a_showdate | ) |
Set Show Date Information.
boolean | $a_showdate | Show Date Information |
Definition at line 115 of file class.ilDateTimeInputGUI.php.
ilDateTimeInputGUI::setShowSeconds | ( | $a_showseconds | ) |
Set Show Seconds.
boolean | $a_showseconds | Show Seconds |
Definition at line 181 of file class.ilDateTimeInputGUI.php.
ilDateTimeInputGUI::setShowTime | ( | $a_showtime | ) |
Set Show Time Information.
boolean | $a_showtime | Show Time Information |
Definition at line 135 of file class.ilDateTimeInputGUI.php.
Referenced by ilObjCourseGUI\initForm(), ilObjUserGUI\initForm(), ilObjGroupGUI\initForm(), ilCourseItemAdministrationGUI\initFormEdit(), and ilObjExerciseGUI\initPropertiesForm().
ilDateTimeInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 201 of file class.ilDateTimeInputGUI.php.
References ilFormPropertyGUI\getPostVar(), ilSubEnabledFormPropertyGUI\getSubItems(), IL_CAL_DATE, IL_CAL_DATETIME, and setDate().
|
protected |
Definition at line 42 of file class.ilDateTimeInputGUI.php.
Referenced by getActivationPostVar().
|
protected |
Definition at line 41 of file class.ilDateTimeInputGUI.php.
|
protected |
Definition at line 34 of file class.ilDateTimeInputGUI.php.
Referenced by checkInput(), and getDate().
|
protected |
Definition at line 33 of file class.ilDateTimeInputGUI.php.
|
protected |
Definition at line 39 of file class.ilDateTimeInputGUI.php.
Referenced by getMinuteStepSize().
|
protected |
Definition at line 35 of file class.ilDateTimeInputGUI.php.
Referenced by getShowDate().
|
protected |
Definition at line 38 of file class.ilDateTimeInputGUI.php.
Referenced by getShowSeconds().
|
protected |
Definition at line 37 of file class.ilDateTimeInputGUI.php.
Referenced by getShowTime().
|
protected |
Definition at line 36 of file class.ilDateTimeInputGUI.php.