ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
This class represents a multi selection list property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. More... | |
setWidth ($a_width) | |
Sets the width of this field. More... | |
getWidth () | |
Returns the width currently set for this field. More... | |
setHeight ($a_height) | |
Sets the height of this field. More... | |
getHeight () | |
Returns the height currently set for this field. More... | |
setOptions ($a_options) | |
Set Options. More... | |
getOptions () | |
Get Options. More... | |
setValue ($a_array) | |
Set Value. More... | |
getValue () | |
Get Value. More... | |
setValueByArray ($a_values) | |
Set value by array. More... | |
enableSelectAll ($a_value) | |
enableSelectedFirst ($a_value) | |
checkInput () | |
Check input, strip slashes etc. More... | |
render () | |
Render item. More... | |
insert ($a_tpl) | |
Insert property html. More... | |
getTableFilterHTML () | |
Get HTML for table filter. More... | |
getCustomAttributes () | |
setCustomAttributes ($custom_attributes) | |
addCustomAttribute ($custom_attribute) | |
getWidthUnit () | |
setWidthUnit ($widthUnit) | |
getHeightUnit () | |
setHeightUnit ($heightUnit) | |
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 | |
$options | |
$value | |
$select_all | |
$selected_first | |
$widthUnit = 'px' | |
$heightUnit = 'px' | |
$custom_attributes = array() | |
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 | |
Private Attributes | |
$width = 160 | |
$height = 100 | |
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 multi selection list property in a property form.
Definition at line 34 of file class.ilMultiSelectInputGUI.php.
ilMultiSelectInputGUI::__construct | ( | $a_title = "" , |
|
$a_postvar = "" |
|||
) |
Constructor.
string | $a_title | Title |
string | $a_postvar | Post Variable |
Definition at line 78 of file class.ilMultiSelectInputGUI.php.
References $DIC, array, ilFormPropertyGUI\setType(), and setValue().
ilMultiSelectInputGUI::addCustomAttribute | ( | $custom_attribute | ) |
array | $custom_attribute |
Definition at line 355 of file class.ilMultiSelectInputGUI.php.
ilMultiSelectInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Definition at line 199 of file class.ilMultiSelectInputGUI.php.
References $_POST, $key, ilFormPropertyGUI\$lng, $options, array, getOptions(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), ilFormPropertyGUI\setAlert(), and ilUtil\stripSlashes().
ilMultiSelectInputGUI::enableSelectAll | ( | $a_value | ) |
Definition at line 183 of file class.ilMultiSelectInputGUI.php.
ilMultiSelectInputGUI::enableSelectedFirst | ( | $a_value | ) |
Definition at line 188 of file class.ilMultiSelectInputGUI.php.
ilMultiSelectInputGUI::getCustomAttributes | ( | ) |
Definition at line 337 of file class.ilMultiSelectInputGUI.php.
References $custom_attributes.
Referenced by render().
ilMultiSelectInputGUI::getHeight | ( | ) |
Returns the height currently set for this field.
public
Definition at line 127 of file class.ilMultiSelectInputGUI.php.
References $height.
Referenced by render().
ilMultiSelectInputGUI::getHeightUnit | ( | ) |
Definition at line 379 of file class.ilMultiSelectInputGUI.php.
References $heightUnit.
Referenced by render().
ilMultiSelectInputGUI::getOptions | ( | ) |
Get Options.
Definition at line 147 of file class.ilMultiSelectInputGUI.php.
References $options.
Referenced by checkInput(), and render().
ilMultiSelectInputGUI::getTableFilterHTML | ( | ) |
Get HTML for table filter.
Implements ilTableFilterItem.
Definition at line 327 of file class.ilMultiSelectInputGUI.php.
References $html, and render().
ilMultiSelectInputGUI::getValue | ( | ) |
Get Value.
Definition at line 167 of file class.ilMultiSelectInputGUI.php.
References array.
Referenced by render().
ilMultiSelectInputGUI::getWidth | ( | ) |
Returns the width currently set for this field.
public
Definition at line 105 of file class.ilMultiSelectInputGUI.php.
References $width.
Referenced by render().
ilMultiSelectInputGUI::getWidthUnit | ( | ) |
Definition at line 363 of file class.ilMultiSelectInputGUI.php.
References $widthUnit.
Referenced by render().
ilMultiSelectInputGUI::insert | ( | $a_tpl | ) |
Insert property html.
Definition at line 317 of file class.ilMultiSelectInputGUI.php.
References render().
ilMultiSelectInputGUI::render | ( | ) |
Render item.
Definition at line 236 of file class.ilMultiSelectInputGUI.php.
References ilFormPropertyGUI\$lng, $options, $tpl, array, getCustomAttributes(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), getHeight(), getHeightUnit(), getOptions(), ilFormPropertyGUI\getPostVar(), getValue(), getWidth(), getWidthUnit(), and ilUtil\prepareFormOutput().
Referenced by getTableFilterHTML(), and insert().
ilMultiSelectInputGUI::setCustomAttributes | ( | $custom_attributes | ) |
array | $custom_attributes |
Definition at line 346 of file class.ilMultiSelectInputGUI.php.
References $custom_attributes.
ilMultiSelectInputGUI::setHeight | ( | $a_height | ) |
Sets the height of this field.
public
integer | $a_height |
Definition at line 116 of file class.ilMultiSelectInputGUI.php.
ilMultiSelectInputGUI::setHeightUnit | ( | $heightUnit | ) |
string | $heightUnit |
Definition at line 387 of file class.ilMultiSelectInputGUI.php.
References $heightUnit.
ilMultiSelectInputGUI::setOptions | ( | $a_options | ) |
Set Options.
array | $a_options | Options. Array ("value" => "option_text") |
Definition at line 137 of file class.ilMultiSelectInputGUI.php.
Referenced by assFormulaQuestionGUI\isSaveCommand(), ilOrgUnitTypeAdvancedMetaDataFormGUI\saveObject(), and ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject().
ilMultiSelectInputGUI::setValue | ( | $a_array | ) |
Set Value.
array | array with all activated selections |
Definition at line 157 of file class.ilMultiSelectInputGUI.php.
Referenced by __construct(), and setValueByArray().
ilMultiSelectInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 177 of file class.ilMultiSelectInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
ilMultiSelectInputGUI::setWidth | ( | $a_width | ) |
Sets the width of this field.
public
integer | $a_width |
Definition at line 94 of file class.ilMultiSelectInputGUI.php.
ilMultiSelectInputGUI::setWidthUnit | ( | $widthUnit | ) |
string | $widthUnit |
Definition at line 371 of file class.ilMultiSelectInputGUI.php.
References $widthUnit.
|
protected |
Definition at line 70 of file class.ilMultiSelectInputGUI.php.
Referenced by getCustomAttributes(), and setCustomAttributes().
|
private |
Definition at line 55 of file class.ilMultiSelectInputGUI.php.
Referenced by getHeight().
|
protected |
Definition at line 65 of file class.ilMultiSelectInputGUI.php.
Referenced by getHeightUnit(), and setHeightUnit().
|
protected |
Definition at line 36 of file class.ilMultiSelectInputGUI.php.
Referenced by checkInput(), getOptions(), and render().
|
protected |
Definition at line 38 of file class.ilMultiSelectInputGUI.php.
|
protected |
Definition at line 39 of file class.ilMultiSelectInputGUI.php.
|
protected |
Definition at line 37 of file class.ilMultiSelectInputGUI.php.
|
private |
Definition at line 47 of file class.ilMultiSelectInputGUI.php.
Referenced by getWidth().
|
protected |
Definition at line 60 of file class.ilMultiSelectInputGUI.php.
Referenced by getWidthUnit(), and setWidthUnit().