ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
This class represents a text property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. More... | |
setValue ($a_value) | |
Set Value. More... | |
getValue () | |
Get Value. More... | |
setValidationFailureMessage ($a_msg) | |
Set message string for validation failure. More... | |
getValidationFailureMessage () | |
setValidationRegexp ($a_value) | |
Set validation regexp. More... | |
getValidationRegexp () | |
Get validation regexp. More... | |
setMaxLength ($a_maxlength) | |
Set Max Length. More... | |
getMaxLength () | |
Get Max Length. More... | |
setSize ($a_size) | |
Set Size. More... | |
setInlineStyle ($a_style) | |
Set inline style. More... | |
getInlineStyle () | |
Get inline style. More... | |
setCssClass ($a_class) | |
getCssClass () | |
setValueByArray ($a_values) | |
Set value by array. More... | |
getSize () | |
Get Size. More... | |
setSuffix ($a_value) | |
Set suffix. More... | |
getSuffix () | |
Get suffix. More... | |
setInputType ($a_type) | |
set input type More... | |
getInputType () | |
get input type More... | |
setSubmitFormOnEnter ($a_val) | |
Set submit form on enter. More... | |
getSubmitFormOnEnter () | |
Get submit form on enter. More... | |
checkInput () | |
Check input, strip slashes etc. More... | |
getDataSource () | |
get datasource link for js autocomplete More... | |
setDataSource ($href, $a_delimiter=null) | |
set datasource link for js autocomplete More... | |
setDataSourceSubmitOnSelection ($a_stat) | |
getDataSourceSubmitOnSelection () | |
setDataSourceSubmitUrl ($a_url) | |
getDataSourceSubmitUrl () | |
setMultiValues (array $a_values) | |
Set multi values. More... | |
insert (&$a_tpl) | |
Insert property html. More... | |
getTableFilterHTML () | |
Get HTML for table filter. More... | |
getToolbarHTML () | |
Get HTML for toolbar. More... | |
setDisableHtmlAutoComplete ($autocomplete) | |
isHtmlAutoCompleteDisabled () | |
![]() | |
addSubItem ($a_item) | |
Add Subitem. More... | |
getSubItems () | |
Get Subitems. More... | |
getSubInputItemsRecursive () | |
returns a flat array of possibly existing subitems recursively More... | |
checkSubItemsInput () | |
Check SubItems. More... | |
getSubForm () | |
Get sub form html. More... | |
getItemByPostVar ($a_post_var) | |
Get item by post var. More... | |
![]() | |
__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... | |
removeProhibitedCharacters ($a_text) | |
Remove prohibited characters see #19159. More... | |
stripSlashesAddSpaceFallback ($a_str) | |
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More... | |
getTableFilterHTML () | |
Get input item HTML to be inserted into table filters. More... | |
getToolbarHTML () | |
Get input item HTML to be inserted into ilToolbarGUI. More... | |
Protected Attributes | |
$value | |
$maxlength = 200 | |
$size = 40 | |
$validationRegexp | |
$validationFailureMessage = '' | |
$suffix | |
$style_css | |
$css_class | |
$ajax_datasource | |
$ajax_datasource_delimiter | |
$ajax_datasource_commit = FALSE | |
$ajax_datasource_commit_url | |
$submit_form_on_enter = false | |
$autocomplete_disabled = false | |
![]() | |
$sub_items = array() | |
![]() | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false | |
$parentgui | |
$parentform | |
$hidden_title = "" | |
$multi = false | |
$multi_sortable = false | |
$multi_addremove = true | |
$multi_values | |
Additional Inherited Members | |
![]() | |
setType ($a_type) | |
Set Type. More... | |
getMultiIconsHTML () | |
Get HTML for multiple value icons. More... | |
This class represents a text property in a property form.
Definition at line 16 of file class.ilTextInputGUI.php.
ilTextInputGUI::__construct | ( | $a_title = "" , |
|
$a_postvar = "" |
|||
) |
Constructor.
string | $a_title | Title |
string | $a_postvar | Post Variable |
Reimplemented from ilFormPropertyGUI.
Reimplemented in ilLuceneQueryInputGUI, ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilAnswerWizardInputGUI, ilErrorTextWizardInputGUI, ilImageWizardInputGUI, ilKprimChoiceWizardInputGUI, ilKVPWizardInputGUI, ilMatchingPairWizardInputGUI, ilMatchingWizardInputGUI, ilSingleChoiceWizardInputGUI, ilColorPickerInputGUI, ilFeedUrlInputGUI, ilRegExpInputGUI, ilSelectBuilderInputGUI, ilTextWizardInputGUI, and ilTRBLColorPickerInputGUI.
Definition at line 43 of file class.ilTextInputGUI.php.
References setInputType(), and ilFormPropertyGUI\setType().
ilTextInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Reimplemented in ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilAnswerWizardInputGUI, ilErrorTextWizardInputGUI, ilEssayKeywordWizardInputGUI, ilImageWizardInputGUI, ilKprimChoiceWizardInputGUI, ilKVPWizardInputGUI, ilMatchingPairWizardInputGUI, ilMatchingWizardInputGUI, ilMultipleChoiceWizardInputGUI, ilSingleChoiceWizardInputGUI, ilColorPickerInputGUI, ilFeedUrlInputGUI, ilFormulaInputGUI, ilRegExpInputGUI, ilSelectBuilderInputGUI, ilTextWizardInputGUI, ilMailQuickFilterInputGUI, ilLuceneQueryInputGUI, and ilTRBLColorPickerInputGUI.
Definition at line 260 of file class.ilTextInputGUI.php.
References $_POST, $lng, $value, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), ilFormPropertyGUI\getMulti(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getValidationFailureMessage(), getValidationRegexp(), ilFormPropertyGUI\setAlert(), and ilFormPropertyGUI\stripSlashesAddSpaceFallback().
ilTextInputGUI::getCssClass | ( | ) |
ilTextInputGUI::getDataSource | ( | ) |
get datasource link for js autocomplete
Definition at line 337 of file class.ilTextInputGUI.php.
References $ajax_datasource.
ilTextInputGUI::getDataSourceSubmitOnSelection | ( | ) |
Definition at line 357 of file class.ilTextInputGUI.php.
References $ajax_datasource_commit.
ilTextInputGUI::getDataSourceSubmitUrl | ( | ) |
Definition at line 366 of file class.ilTextInputGUI.php.
References $ajax_datasource_commit_url.
ilTextInputGUI::getInlineStyle | ( | ) |
Get inline style.
Definition at line 157 of file class.ilTextInputGUI.php.
References $style_css.
ilTextInputGUI::getInputType | ( | ) |
get input type
@access public
Definition at line 230 of file class.ilTextInputGUI.php.
ilTextInputGUI::getMaxLength | ( | ) |
Get Max Length.
Definition at line 127 of file class.ilTextInputGUI.php.
References $maxlength.
Referenced by ilSelectBuilderInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), and ilTextWizardInputGUI\insert().
ilTextInputGUI::getSize | ( | ) |
Get Size.
Definition at line 188 of file class.ilTextInputGUI.php.
References $size.
Referenced by ilSelectBuilderInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), and ilTextWizardInputGUI\insert().
ilTextInputGUI::getSubmitFormOnEnter | ( | ) |
Get submit form on enter.
Definition at line 250 of file class.ilTextInputGUI.php.
References $submit_form_on_enter.
ilTextInputGUI::getSuffix | ( | ) |
Get suffix.
Definition at line 208 of file class.ilTextInputGUI.php.
References $suffix.
ilTextInputGUI::getTableFilterHTML | ( | ) |
Get HTML for table filter.
Implements ilTableFilterItem.
Definition at line 562 of file class.ilTextInputGUI.php.
References $html.
ilTextInputGUI::getToolbarHTML | ( | ) |
Get HTML for toolbar.
Implements ilToolbarItem.
Definition at line 571 of file class.ilTextInputGUI.php.
References $html.
ilTextInputGUI::getValidationFailureMessage | ( | ) |
Definition at line 87 of file class.ilTextInputGUI.php.
References $validationFailureMessage.
Referenced by checkInput().
ilTextInputGUI::getValidationRegexp | ( | ) |
Get validation regexp.
Definition at line 107 of file class.ilTextInputGUI.php.
References $validationRegexp.
Referenced by ilSelectBuilderInputGUI\checkInput(), checkInput(), and ilTextWizardInputGUI\checkInput().
ilTextInputGUI::getValue | ( | ) |
Get Value.
Definition at line 71 of file class.ilTextInputGUI.php.
References $value.
Referenced by ilColorPickerInputGUI\insert().
ilTextInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Reimplemented in ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilAnswerWizardInputGUI, ilErrorTextWizardInputGUI, ilEssayKeywordWizardInputGUI, ilImageWizardInputGUI, ilKVPWizardInputGUI, ilMatchingPairWizardInputGUI, ilMatchingWizardInputGUI, ilMultipleChoiceWizardInputGUI, ilSingleChoiceWizardInputGUI, and ilTextWizardInputGUI.
Definition at line 550 of file class.ilTextInputGUI.php.
References $html.
ilTextInputGUI::isHtmlAutoCompleteDisabled | ( | ) |
Definition at line 588 of file class.ilTextInputGUI.php.
References $autocomplete_disabled.
ilTextInputGUI::setCssClass | ( | $a_class | ) |
Definition at line 162 of file class.ilTextInputGUI.php.
ilTextInputGUI::setDataSource | ( | $href, | |
$a_delimiter = null |
|||
) |
set datasource link for js autocomplete
String | link to data generation script |
Definition at line 346 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct().
ilTextInputGUI::setDataSourceSubmitOnSelection | ( | $a_stat | ) |
Definition at line 352 of file class.ilTextInputGUI.php.
ilTextInputGUI::setDataSourceSubmitUrl | ( | $a_url | ) |
Definition at line 362 of file class.ilTextInputGUI.php.
ilTextInputGUI::setDisableHtmlAutoComplete | ( | $autocomplete | ) |
boolean | $autocomplete |
Definition at line 580 of file class.ilTextInputGUI.php.
ilTextInputGUI::setInlineStyle | ( | $a_style | ) |
Set inline style.
string | $a_style | style |
Definition at line 147 of file class.ilTextInputGUI.php.
ilTextInputGUI::setInputType | ( | $a_type | ) |
set input type
@access public
string | input type password | text |
Definition at line 220 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct(), and __construct().
ilTextInputGUI::setMaxLength | ( | $a_maxlength | ) |
Set Max Length.
int | $a_maxlength | Max Length |
Definition at line 117 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilCategoryWizardInputGUI\__construct(), and ilMatrixRowWizardInputGUI\__construct().
ilTextInputGUI::setMultiValues | ( | array | $a_values | ) |
Set multi values.
array | $a_values |
Reimplemented from ilFormPropertyGUI.
Definition at line 372 of file class.ilTextInputGUI.php.
References $value.
Referenced by setValue().
ilTextInputGUI::setSize | ( | $a_size | ) |
Set Size.
int | $a_size | Size |
Definition at line 137 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilAnswerWizardInputGUI\__construct(), ilImageWizardInputGUI\__construct(), ilMatchingWizardInputGUI\__construct(), and ilSingleChoiceWizardInputGUI\__construct().
ilTextInputGUI::setSubmitFormOnEnter | ( | $a_val | ) |
Set submit form on enter.
boolean |
Definition at line 240 of file class.ilTextInputGUI.php.
ilTextInputGUI::setSuffix | ( | $a_value | ) |
Set suffix.
string | $a_value | suffix |
Definition at line 198 of file class.ilTextInputGUI.php.
ilTextInputGUI::setValidationFailureMessage | ( | $a_msg | ) |
Set message string for validation failure.
string | $a_msg |
Definition at line 82 of file class.ilTextInputGUI.php.
ilTextInputGUI::setValidationRegexp | ( | $a_value | ) |
Set validation regexp.
string | $a_value | regexp |
Definition at line 97 of file class.ilTextInputGUI.php.
ilTextInputGUI::setValue | ( | $a_value | ) |
Set Value.
string | $a_value | Value |
Reimplemented in ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilAnswerWizardInputGUI, ilErrorTextWizardInputGUI, ilEssayKeywordWizardInputGUI, ilImageWizardInputGUI, ilKprimChoiceWizardInputGUI, ilKVPWizardInputGUI, ilMatchingPairWizardInputGUI, ilMatchingWizardInputGUI, ilMultipleChoiceWizardInputGUI, ilSingleChoiceWizardInputGUI, ilColorPickerInputGUI, ilFormulaInputGUI, and ilTextWizardInputGUI.
Definition at line 56 of file class.ilTextInputGUI.php.
References ilFormPropertyGUI\getMulti(), and setMultiValues().
Referenced by setValueByArray().
ilTextInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Reimplemented in ilDclTextInputGUI, and ilSelectBuilderInputGUI.
Definition at line 178 of file class.ilTextInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
|
protected |
Definition at line 26 of file class.ilTextInputGUI.php.
Referenced by getDataSource().
|
protected |
Definition at line 28 of file class.ilTextInputGUI.php.
Referenced by getDataSourceSubmitOnSelection().
|
protected |
Definition at line 29 of file class.ilTextInputGUI.php.
Referenced by getDataSourceSubmitUrl().
|
protected |
Definition at line 27 of file class.ilTextInputGUI.php.
|
protected |
Definition at line 35 of file class.ilTextInputGUI.php.
Referenced by isHtmlAutoCompleteDisabled().
|
protected |
Definition at line 25 of file class.ilTextInputGUI.php.
Referenced by getCssClass().
|
protected |
Definition at line 19 of file class.ilTextInputGUI.php.
Referenced by getMaxLength().
|
protected |
Definition at line 20 of file class.ilTextInputGUI.php.
Referenced by getSize().
|
protected |
Definition at line 24 of file class.ilTextInputGUI.php.
Referenced by getInlineStyle().
|
protected |
Definition at line 30 of file class.ilTextInputGUI.php.
Referenced by getSubmitFormOnEnter().
|
protected |
Definition at line 23 of file class.ilTextInputGUI.php.
Referenced by ilImageWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkUploads(), getSuffix(), ilImageWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), and ilSingleChoiceWizardInputGUI\insert().
|
protected |
Definition at line 22 of file class.ilTextInputGUI.php.
Referenced by getValidationFailureMessage().
|
protected |
Definition at line 21 of file class.ilTextInputGUI.php.
Referenced by getValidationRegexp().
|
protected |
Definition at line 18 of file class.ilTextInputGUI.php.
Referenced by ilRegExpInputGUI\checkInput(), ilSelectBuilderInputGUI\checkInput(), checkInput(), ilTextWizardInputGUI\checkInput(), ilTRBLColorPickerInputGUI\checkInput(), getValue(), ilSelectBuilderInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilTextWizardInputGUI\insert(), setMultiValues(), ilCategoryWizardInputGUI\setValue(), ilMatrixRowWizardInputGUI\setValue(), ilAnswerWizardInputGUI\setValue(), ilEssayKeywordWizardInputGUI\setValue(), ilImageWizardInputGUI\setValue(), ilKprimChoiceWizardInputGUI\setValue(), ilMatchingWizardInputGUI\setValue(), ilMultipleChoiceWizardInputGUI\setValue(), and ilSingleChoiceWizardInputGUI\setValue().