ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
This class represents a duration (typical hh:mm:ss) property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. More... | |
setDays ($a_days) | |
Set Days. More... | |
getDays () | |
Get Days. More... | |
setHours ($a_hours) | |
Set Hours. More... | |
getHours () | |
Get Hours. More... | |
setMinutes ($a_minutes) | |
Set Minutes. More... | |
getMinutes () | |
Get Minutes. More... | |
setSeconds ($a_seconds) | |
Set Seconds. More... | |
setMonths ($a_months) | |
set months More... | |
getMonths () | |
get months More... | |
getSeconds () | |
Get Seconds. More... | |
setShowMonths ($a_show_months) | |
Set show months. More... | |
getShowMonths () | |
Get show months. More... | |
setShowDays ($a_showdays) | |
Set Show Days. More... | |
getShowDays () | |
Get Show Days. More... | |
setShowHours ($a_showhours) | |
Set Show Hours. More... | |
getShowHours () | |
Get Show Hours. More... | |
setShowMinutes ($a_showminutes) | |
Set Show Minutes. More... | |
getShowMinutes () | |
Get Show Minutes. More... | |
setShowSeconds ($a_showseconds) | |
Set Show Seconds. More... | |
getShowSeconds () | |
Get Show Seconds. More... | |
setValueByArray ($a_values) | |
Set value by array. More... | |
checkInput () | |
Check input, strip slashes etc. More... | |
insert ($a_tpl) | |
Insert property html. More... | |
render () | |
Insert property html. More... | |
getTableFilterHTML () | |
Get HTML for table filter. More... | |
serializeData () | |
serialize data More... | |
unserializeData ($a_data) | |
unserialize data More... | |
getValueInSeconds () | |
Get combined value in seconds. 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... | |
Protected Attributes | |
$lng | |
$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 | |
$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... | |
Protected Member Functions inherited from ilFormPropertyGUI | |
setType ($a_type) | |
Set Type. More... | |
getMultiIconsHTML () | |
Get HTML for multiple value icons. More... | |
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 |
Definition at line 55 of file class.ilDurationInputGUI.php.
References $DIC, and ilFormPropertyGUI\setType().
ilDurationInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Definition at line 287 of file class.ilDurationInputGUI.php.
References $_POST, $lng, ilFormPropertyGUI\getPostVar(), and ilUtil\stripSlashes().
ilDurationInputGUI::getDays | ( | ) |
Get Days.
Definition at line 79 of file class.ilDurationInputGUI.php.
References $days.
Referenced by getValueInSeconds(), render(), and serializeData().
ilDurationInputGUI::getHours | ( | ) |
Get Hours.
Definition at line 99 of file class.ilDurationInputGUI.php.
References $hours.
Referenced by getValueInSeconds(), render(), and serializeData().
ilDurationInputGUI::getMinutes | ( | ) |
Get Minutes.
Definition at line 119 of file class.ilDurationInputGUI.php.
References $minutes.
Referenced by getValueInSeconds(), render(), and serializeData().
ilDurationInputGUI::getMonths | ( | ) |
get months
public
Definition at line 152 of file class.ilDurationInputGUI.php.
References $months.
Referenced by getValueInSeconds(), render(), and serializeData().
ilDurationInputGUI::getSeconds | ( | ) |
Get Seconds.
Definition at line 162 of file class.ilDurationInputGUI.php.
References $seconds.
Referenced by getValueInSeconds(), render(), and serializeData().
ilDurationInputGUI::getShowDays | ( | ) |
Get Show Days.
Definition at line 203 of file class.ilDurationInputGUI.php.
References $showdays.
Referenced by getValueInSeconds(), and render().
ilDurationInputGUI::getShowHours | ( | ) |
Get Show Hours.
Definition at line 223 of file class.ilDurationInputGUI.php.
References $showhours.
Referenced by getValueInSeconds(), and render().
ilDurationInputGUI::getShowMinutes | ( | ) |
Get Show Minutes.
Definition at line 243 of file class.ilDurationInputGUI.php.
References $showminutes.
Referenced by getValueInSeconds(), and render().
ilDurationInputGUI::getShowMonths | ( | ) |
Get show months.
public
Definition at line 183 of file class.ilDurationInputGUI.php.
References $showmonths.
Referenced by getValueInSeconds(), and render().
ilDurationInputGUI::getShowSeconds | ( | ) |
Get Show Seconds.
Definition at line 263 of file class.ilDurationInputGUI.php.
References $showseconds.
Referenced by getValueInSeconds(), and render().
ilDurationInputGUI::getTableFilterHTML | ( | ) |
Get HTML for table filter.
Definition at line 451 of file class.ilDurationInputGUI.php.
References $html, and render().
ilDurationInputGUI::getValueInSeconds | ( | ) |
Get combined value in seconds.
Definition at line 490 of file class.ilDurationInputGUI.php.
References getDays(), getHours(), getMinutes(), getMonths(), getSeconds(), getShowDays(), getShowHours(), getShowMinutes(), getShowMonths(), and getShowSeconds().
ilDurationInputGUI::insert | ( | $a_tpl | ) |
Insert property html.
Definition at line 310 of file class.ilDurationInputGUI.php.
References $html, and render().
ilDurationInputGUI::render | ( | ) |
Insert property html.
Definition at line 323 of file class.ilDurationInputGUI.php.
References $i, $lng, $tpl, array, ilUtil\formSelect(), getDays(), ilFormPropertyGUI\getDisabled(), getHours(), getMinutes(), getMonths(), ilFormPropertyGUI\getPostVar(), getSeconds(), getShowDays(), getShowHours(), getShowMinutes(), getShowMonths(), and getShowSeconds().
Referenced by getTableFilterHTML(), and insert().
ilDurationInputGUI::serializeData | ( | ) |
serialize data
Definition at line 460 of file class.ilDurationInputGUI.php.
References $data, array, getDays(), getHours(), getMinutes(), getMonths(), and getSeconds().
ilDurationInputGUI::setDays | ( | $a_days | ) |
Set Days.
int | $a_days | Days |
Definition at line 69 of file class.ilDurationInputGUI.php.
Referenced by setValueByArray(), and unserializeData().
ilDurationInputGUI::setHours | ( | $a_hours | ) |
Set Hours.
int | $a_hours | Hours |
Definition at line 89 of file class.ilDurationInputGUI.php.
References hours().
Referenced by setValueByArray(), ilAdvancedMDRecordGUI\showECSStart(), and unserializeData().
ilDurationInputGUI::setMinutes | ( | $a_minutes | ) |
Set Minutes.
int | $a_minutes | Minutes |
Definition at line 109 of file class.ilDurationInputGUI.php.
Referenced by setValueByArray(), and unserializeData().
ilDurationInputGUI::setMonths | ( | $a_months | ) |
set months
public
int | months |
Definition at line 141 of file class.ilDurationInputGUI.php.
Referenced by setValueByArray(), and unserializeData().
ilDurationInputGUI::setSeconds | ( | $a_seconds | ) |
Set Seconds.
int | $a_seconds | Seconds |
Definition at line 129 of file class.ilDurationInputGUI.php.
References seconds.
Referenced by setValueByArray(), and unserializeData().
ilDurationInputGUI::setShowDays | ( | $a_showdays | ) |
Set Show Days.
boolean | $a_showdays | Show Days |
Definition at line 193 of file class.ilDurationInputGUI.php.
Referenced by ilECSSettingsGUI\initSettingsForm().
ilDurationInputGUI::setShowHours | ( | $a_showhours | ) |
Set Show Hours.
boolean | $a_showhours | Show Hours |
Definition at line 213 of file class.ilDurationInputGUI.php.
Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), and assQuestionGUI\addBasicQuestionFormProperties().
ilDurationInputGUI::setShowMinutes | ( | $a_showminutes | ) |
Set Show Minutes.
boolean | $a_showminutes | Show Minutes |
Definition at line 233 of file class.ilDurationInputGUI.php.
Referenced by ilConsultationHoursGUI\initFormSequence().
ilDurationInputGUI::setShowMonths | ( | $a_show_months | ) |
Set show months.
public
boolean | $a_show_month |
Definition at line 173 of file class.ilDurationInputGUI.php.
Referenced by ilObjTestSettingsGeneralGUI\addTestRunProperties().
ilDurationInputGUI::setShowSeconds | ( | $a_showseconds | ) |
Set Show Seconds.
boolean | $a_showseconds | Show Seconds |
Definition at line 253 of file class.ilDurationInputGUI.php.
ilDurationInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 273 of file class.ilDurationInputGUI.php.
References ilFormPropertyGUI\getPostVar(), setDays(), setHours(), setMinutes(), setMonths(), and setSeconds().
ilDurationInputGUI::unserializeData | ( | $a_data | ) |
unserialize data
Definition at line 474 of file class.ilDurationInputGUI.php.
References $data, setDays(), setHours(), setMinutes(), setMonths(), and setSeconds().
|
protected |
Definition at line 39 of file class.ilDurationInputGUI.php.
Referenced by getDays().
|
protected |
Definition at line 40 of file class.ilDurationInputGUI.php.
Referenced by getHours().
|
protected |
Definition at line 36 of file class.ilDurationInputGUI.php.
Referenced by checkInput(), and render().
|
protected |
Definition at line 41 of file class.ilDurationInputGUI.php.
Referenced by getMinutes().
|
protected |
Definition at line 38 of file class.ilDurationInputGUI.php.
Referenced by getMonths().
|
protected |
Definition at line 42 of file class.ilDurationInputGUI.php.
Referenced by getSeconds().
|
protected |
Definition at line 44 of file class.ilDurationInputGUI.php.
Referenced by getShowDays().
|
protected |
Definition at line 45 of file class.ilDurationInputGUI.php.
Referenced by getShowHours().
|
protected |
Definition at line 46 of file class.ilDurationInputGUI.php.
Referenced by getShowMinutes().
|
protected |
Definition at line 43 of file class.ilDurationInputGUI.php.
Referenced by getShowMonths().
|
protected |
Definition at line 47 of file class.ilDurationInputGUI.php.
Referenced by getShowSeconds().