ILIAS
Release_4_0_x_branch Revision 61816
|
This class represents a duration (typical hh:mm:ss) property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. | |
setDays ($a_days) | |
Set Days. | |
getDays () | |
Get Days. | |
setHours ($a_hours) | |
Set Hours. | |
getHours () | |
Get Hours. | |
setMinutes ($a_minutes) | |
Set Minutes. | |
getMinutes () | |
Get Minutes. | |
setSeconds ($a_seconds) | |
Set Seconds. | |
setMonths ($a_months) | |
set months | |
getMonths () | |
get months | |
getSeconds () | |
Get Seconds. | |
setShowMonths ($a_show_months) | |
Set show months. | |
getShowMonths () | |
Get show months. | |
setShowDays ($a_showdays) | |
Set Show Days. | |
getShowDays () | |
Get Show Days. | |
setShowHours ($a_showhours) | |
Set Show Hours. | |
getShowHours () | |
Get Show Hours. | |
setShowMinutes ($a_showminutes) | |
Set Show Minutes. | |
getShowMinutes () | |
Get Show Minutes. | |
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. | |
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. | |
getSubForm () | |
Get sub form html. | |
hideSubForm () | |
Sub form hidden on init? | |
setHiddenTitle ($a_val) | |
Set hidden title (for screenreaders) | |
getHiddenTitle () | |
Get hidden title. | |
getItemByPostVar ($a_post_var) | |
Get item by post var. | |
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 | |
$months = 0 | |
$days = 0 | |
$hours = 0 | |
$minutes = 0 | |
$seconds = 0 | |
$showmonths = false | |
$showdays = false | |
$showhours = true | |
$showminutes = true | |
$showseconds = false | |
Protected Attributes inherited from ilFormPropertyGUI | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false | |
$parentgui | |
$parentform |
Additional Inherited Members | |
Protected Member Functions inherited from ilFormPropertyGUI | |
setType ($a_type) | |
Set Type. |
This class represents a duration (typical hh:mm:ss) property in a property form.
Definition at line 31 of file class.ilDurationInputGUI.php.
ilDurationInputGUI::__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.ilDurationInputGUI.php.
References ilFormPropertyGUI\setType().
ilDurationInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Definition at line 279 of file class.ilDurationInputGUI.php.
References $_POST, $lng, ilFormPropertyGUI\getPostVar(), and ilUtil\stripSlashes().
ilDurationInputGUI::getDays | ( | ) |
Get Days.
Definition at line 71 of file class.ilDurationInputGUI.php.
References $days.
Referenced by insert().
ilDurationInputGUI::getHours | ( | ) |
Get Hours.
Definition at line 91 of file class.ilDurationInputGUI.php.
References $hours.
Referenced by insert().
ilDurationInputGUI::getMinutes | ( | ) |
Get Minutes.
Definition at line 111 of file class.ilDurationInputGUI.php.
References $minutes.
Referenced by insert().
ilDurationInputGUI::getMonths | ( | ) |
get months
public
Definition at line 144 of file class.ilDurationInputGUI.php.
References $months.
Referenced by insert().
ilDurationInputGUI::getSeconds | ( | ) |
Get Seconds.
Definition at line 154 of file class.ilDurationInputGUI.php.
References $seconds.
Referenced by insert().
ilDurationInputGUI::getShowDays | ( | ) |
Get Show Days.
Definition at line 195 of file class.ilDurationInputGUI.php.
References $showdays.
Referenced by insert().
ilDurationInputGUI::getShowHours | ( | ) |
Get Show Hours.
Definition at line 215 of file class.ilDurationInputGUI.php.
References $showhours.
Referenced by insert().
ilDurationInputGUI::getShowMinutes | ( | ) |
Get Show Minutes.
Definition at line 235 of file class.ilDurationInputGUI.php.
References $showminutes.
Referenced by insert().
ilDurationInputGUI::getShowMonths | ( | ) |
Get show months.
public
Definition at line 175 of file class.ilDurationInputGUI.php.
References $showmonths.
Referenced by insert().
ilDurationInputGUI::getShowSeconds | ( | ) |
Get Show Seconds.
Definition at line 255 of file class.ilDurationInputGUI.php.
References $showseconds.
Referenced by insert().
ilDurationInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Definition at line 301 of file class.ilDurationInputGUI.php.
References $lng, ilUtil\formSelect(), getDays(), getHours(), getMinutes(), getMonths(), ilFormPropertyGUI\getPostVar(), getSeconds(), getShowDays(), getShowHours(), getShowMinutes(), getShowMonths(), and getShowSeconds().
ilDurationInputGUI::setDays | ( | $a_days | ) |
Set Days.
int | $a_days | Days |
Definition at line 61 of file class.ilDurationInputGUI.php.
Referenced by setValueByArray().
ilDurationInputGUI::setHours | ( | $a_hours | ) |
Set Hours.
int | $a_hours | Hours |
Definition at line 81 of file class.ilDurationInputGUI.php.
Referenced by setValueByArray(), and ilAdvancedMDRecordGUI\showECSStart().
ilDurationInputGUI::setMinutes | ( | $a_minutes | ) |
Set Minutes.
int | $a_minutes | Minutes |
Definition at line 101 of file class.ilDurationInputGUI.php.
Referenced by setValueByArray().
ilDurationInputGUI::setMonths | ( | $a_months | ) |
set months
public
int | months |
Definition at line 133 of file class.ilDurationInputGUI.php.
Referenced by setValueByArray().
ilDurationInputGUI::setSeconds | ( | $a_seconds | ) |
Set Seconds.
int | $a_seconds | Seconds |
Definition at line 121 of file class.ilDurationInputGUI.php.
Referenced by setValueByArray().
ilDurationInputGUI::setShowDays | ( | $a_showdays | ) |
Set Show Days.
boolean | $a_showdays | Show Days |
Definition at line 185 of file class.ilDurationInputGUI.php.
Referenced by ilECSSettingsGUI\initSettingsForm().
ilDurationInputGUI::setShowHours | ( | $a_showhours | ) |
Set Show Hours.
boolean | $a_showhours | Show Hours |
Definition at line 205 of file class.ilDurationInputGUI.php.
Referenced by assQuestionGUI\addBasicQuestionFormProperties().
ilDurationInputGUI::setShowMinutes | ( | $a_showminutes | ) |
Set Show Minutes.
boolean | $a_showminutes | Show Minutes |
Definition at line 225 of file class.ilDurationInputGUI.php.
ilDurationInputGUI::setShowMonths | ( | $a_show_months | ) |
Set show months.
public
boolean | $a_show_month |
Definition at line 165 of file class.ilDurationInputGUI.php.
ilDurationInputGUI::setShowSeconds | ( | $a_showseconds | ) |
Set Show Seconds.
boolean | $a_showseconds | Show Seconds |
Definition at line 245 of file class.ilDurationInputGUI.php.
ilDurationInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 265 of file class.ilDurationInputGUI.php.
References ilFormPropertyGUI\getPostVar(), setDays(), setHours(), setMinutes(), setMonths(), and setSeconds().
|
protected |
Definition at line 34 of file class.ilDurationInputGUI.php.
Referenced by getDays().
|
protected |
Definition at line 35 of file class.ilDurationInputGUI.php.
Referenced by getHours().
|
protected |
Definition at line 36 of file class.ilDurationInputGUI.php.
Referenced by getMinutes().
|
protected |
Definition at line 33 of file class.ilDurationInputGUI.php.
Referenced by getMonths().
|
protected |
Definition at line 37 of file class.ilDurationInputGUI.php.
Referenced by getSeconds().
|
protected |
Definition at line 39 of file class.ilDurationInputGUI.php.
Referenced by getShowDays().
|
protected |
Definition at line 40 of file class.ilDurationInputGUI.php.
Referenced by getShowHours().
|
protected |
Definition at line 41 of file class.ilDurationInputGUI.php.
Referenced by getShowMinutes().
|
protected |
Definition at line 38 of file class.ilDurationInputGUI.php.
Referenced by getShowMonths().
|
protected |
Definition at line 42 of file class.ilDurationInputGUI.php.
Referenced by getShowSeconds().