ILIAS
Release_4_0_x_branch Revision 61816
|
This class represents a text property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. | |
setValue ($a_value) | |
Set Value. | |
getValue () | |
Get Value. | |
setValidationFailureMessage ($a_msg) | |
Set message string for validation failure. | |
getValidationFailureMessage () | |
setValidationRegexp ($a_value) | |
Set validation regexp. | |
getValidationRegexp () | |
Get validation regexp. | |
setMaxLength ($a_maxlength) | |
Set Max Length. | |
getMaxLength () | |
Get Max Length. | |
setSize ($a_size) | |
Set Size. | |
setInlineStyle ($a_style) | |
Set inline style. | |
getInlineStyle () | |
Get inline style. | |
setValueByArray ($a_values) | |
Set value by array. | |
getSize () | |
Get Size. | |
setSuffix ($a_value) | |
Set suffix. | |
getSuffix () | |
Get suffix. | |
setInputType ($a_type) | |
set input type | |
getInputType () | |
get input type | |
setSubmitFormOnEnter ($a_val) | |
Set submit form on enter. | |
getSubmitFormOnEnter () | |
Get submit form on enter. | |
checkInput () | |
Check input, strip slashes etc. | |
getDataSource () | |
get datasource link for YUI autocomplete | |
setDataSource ($href) | |
set datasource link for YUI autocomplete | |
getDataSourceSchema () | |
get datasource schema for YUI autocomplete | |
setDataSourceSchema ($ds) | |
set datasource schema for YUI autocomplete | |
getDataSourceResultFormat () | |
get data result format callback for YUI autocomplete | |
setDataSourceResultFormat ($callback) | |
set data result format callback for YUI autocomplete | |
setDataSourceDelimiter ($ar) | |
set data delimiter array | |
getDataSourceDelimiter () | |
get data delimiter array | |
insert (&$a_tpl) | |
Insert property html. | |
getTableFilterHTML () | |
Get HTML for table filter. | |
getToolbarHTML () | |
Get HTML for toolbar. | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
addSubItem ($a_item) | |
Add Subitem. | |
getSubItems () | |
Get Subitems. | |
checkSubItemsInput () | |
Check SubItems. | |
getSubForm () | |
Get sub form html. | |
getItemByPostVar ($a_post_var) | |
Get item by post var. | |
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. | |
hideSubForm () | |
Sub form hidden on init? | |
setHiddenTitle ($a_val) | |
Set hidden title (for screenreaders) | |
getHiddenTitle () | |
Get hidden title. | |
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 Member Functions | |
render ($a_mode="") | |
Render item. |
Protected Attributes | |
$value | |
$maxlength = 200 | |
$size = 40 | |
$validationRegexp | |
$validationFailureMessage = '' | |
$suffix | |
$style_css | |
$yui_dataSource | |
$yui_dataSchema | |
$yui_formatCallback | |
$yui_delimiterarray = array() | |
$submit_form_on_enter = false | |
Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
$sub_items = array() | |
Protected Attributes inherited from ilFormPropertyGUI | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false | |
$parentgui | |
$parentform |
This class represents a text property in a property form.
Definition at line 14 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 ilCategoryWizardInputGUI, ilMatchingWizardInputGUI, ilKVPWizardInputGUI, ilErrorTextWizardInputGUI, ilSingleChoiceWizardInputGUI, ilAnswerWizardInputGUI, ilImageWizardInputGUI, ilMatchingPairWizardInputGUI, ilTRBLColorPickerInputGUI, ilFeedUrlInputGUI, ilTextWizardInputGUI, ilRegExpInputGUI, ilLuceneQueryInputGUI, and ilColorPickerInputGUI.
Definition at line 37 of file class.ilTextInputGUI.php.
References setInputType().
ilTextInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Reimplemented in ilKVPWizardInputGUI, ilTRBLColorPickerInputGUI, ilCategoryWizardInputGUI, ilErrorTextWizardInputGUI, ilSingleChoiceWizardInputGUI, ilMatchingWizardInputGUI, ilAnswerWizardInputGUI, ilImageWizardInputGUI, ilMatchingPairWizardInputGUI, ilTextWizardInputGUI, ilRegExpInputGUI, ilMultipleChoiceWizardInputGUI, ilFeedUrlInputGUI, ilLuceneQueryInputGUI, ilColorPickerInputGUI, and ilFormulaInputGUI.
Definition at line 236 of file class.ilTextInputGUI.php.
References $_POST, $lng, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getValidationFailureMessage(), getValidationRegexp(), ilFormPropertyGUI\setAlert(), and ilUtil\stripSlashes().
ilTextInputGUI::getDataSource | ( | ) |
get datasource link for YUI autocomplete
Definition at line 267 of file class.ilTextInputGUI.php.
References $yui_dataSource.
Referenced by render().
ilTextInputGUI::getDataSourceDelimiter | ( | ) |
get data delimiter array
Definition at line 344 of file class.ilTextInputGUI.php.
References $yui_delimiterarray.
Referenced by render().
ilTextInputGUI::getDataSourceResultFormat | ( | ) |
get data result format callback for YUI autocomplete
Definition at line 311 of file class.ilTextInputGUI.php.
References $yui_formatCallback.
Referenced by render().
ilTextInputGUI::getDataSourceSchema | ( | ) |
get datasource schema for YUI autocomplete
Definition at line 285 of file class.ilTextInputGUI.php.
References $yui_dataSchema.
Referenced by render().
ilTextInputGUI::getInlineStyle | ( | ) |
Get inline style.
Definition at line 144 of file class.ilTextInputGUI.php.
References $style_css.
Referenced by render().
ilTextInputGUI::getInputType | ( | ) |
get input type
public
Definition at line 206 of file class.ilTextInputGUI.php.
Referenced by render().
ilTextInputGUI::getMaxLength | ( | ) |
Get Max Length.
Definition at line 114 of file class.ilTextInputGUI.php.
References $maxlength.
Referenced by ilTextWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), and render().
ilTextInputGUI::getSize | ( | ) |
Get Size.
Definition at line 164 of file class.ilTextInputGUI.php.
References $size.
Referenced by ilTextWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), and render().
ilTextInputGUI::getSubmitFormOnEnter | ( | ) |
Get submit form on enter.
Definition at line 226 of file class.ilTextInputGUI.php.
References $submit_form_on_enter.
Referenced by render().
ilTextInputGUI::getSuffix | ( | ) |
Get suffix.
Definition at line 184 of file class.ilTextInputGUI.php.
References $suffix.
Referenced by render().
ilTextInputGUI::getTableFilterHTML | ( | ) |
Get HTML for table filter.
Implements ilTableFilterItem.
Definition at line 455 of file class.ilTextInputGUI.php.
References render().
ilTextInputGUI::getToolbarHTML | ( | ) |
Get HTML for toolbar.
Definition at line 464 of file class.ilTextInputGUI.php.
References render().
ilTextInputGUI::getValidationFailureMessage | ( | ) |
Definition at line 74 of file class.ilTextInputGUI.php.
References $validationFailureMessage.
Referenced by checkInput().
ilTextInputGUI::getValidationRegexp | ( | ) |
Get validation regexp.
Definition at line 94 of file class.ilTextInputGUI.php.
References $validationRegexp.
Referenced by ilTextWizardInputGUI\checkInput(), and checkInput().
ilTextInputGUI::getValue | ( | ) |
Get Value.
Definition at line 59 of file class.ilTextInputGUI.php.
References $value.
Referenced by ilColorPickerInputGUI\insert(), and render().
ilTextInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Reimplemented in ilSingleChoiceWizardInputGUI, ilMatchingWizardInputGUI, ilKVPWizardInputGUI, ilErrorTextWizardInputGUI, ilCategoryWizardInputGUI, ilImageWizardInputGUI, ilMultipleChoiceWizardInputGUI, ilAnswerWizardInputGUI, ilMatchingPairWizardInputGUI, and ilTextWizardInputGUI.
Definition at line 443 of file class.ilTextInputGUI.php.
References render().
|
protected |
Render item.
Definition at line 352 of file class.ilTextInputGUI.php.
References $tpl, ilJsonUtil\encode(), getDataSource(), getDataSourceDelimiter(), getDataSourceResultFormat(), getDataSourceSchema(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getHiddenTag(), getInlineStyle(), getInputType(), getMaxLength(), ilFormPropertyGUI\getPostVar(), getSize(), getSubmitFormOnEnter(), getSuffix(), getValue(), ilYuiUtil\initAutoComplete(), and ilUtil\prepareFormOutput().
Referenced by getTableFilterHTML(), getToolbarHTML(), and insert().
ilTextInputGUI::setDataSource | ( | $href | ) |
set datasource link for YUI autocomplete
String | link to data generation script |
Definition at line 276 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilUserLoginAutoCompleteInputGUI\__construct(), and ilMailAddressbookGUI\showAddressbook().
ilTextInputGUI::setDataSourceDelimiter | ( | $ar | ) |
set data delimiter array
array | array of chars. Each char will be used as delimiter to handle multiple inputs in one field (e.g. multiple email recipients) |
Definition at line 333 of file class.ilTextInputGUI.php.
ilTextInputGUI::setDataSourceResultFormat | ( | $callback | ) |
set data result format callback for YUI autocomplete
String | Javascript callback function which takes three parameters. $callback can be a the name of a function without parenthesis or an function (a, b, c) {...} text block |
Definition at line 322 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct(), and ilUserLoginAutoCompleteInputGUI\__construct().
ilTextInputGUI::setDataSourceSchema | ( | $ds | ) |
set datasource schema for YUI autocomplete
array | Data Schema as array. The first Element contains a path in dot notation to a result array in the expected json response e.g. for the json response {response : { result : [firstObject, secondObject ...] }} the dot notated path is 'response.result' The following Elements contains names of attributes within the resultobjects (firstObject, secondObject... see above) which should be passed to the autocomplete component. You can define a javascript format callback function, to process the passed values (see setDataSourceResultFormat for more information) |
Definition at line 303 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct(), and ilUserLoginAutoCompleteInputGUI\__construct().
ilTextInputGUI::setInlineStyle | ( | $a_style | ) |
Set inline style.
string | $a_style | style |
Definition at line 134 of file class.ilTextInputGUI.php.
ilTextInputGUI::setInputType | ( | $a_type | ) |
set input type
public
string | input type password | text |
Definition at line 196 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilUserLoginAutoCompleteInputGUI\__construct(), __construct(), and ilPDNewsBlockGUI\editSettings().
ilTextInputGUI::setMaxLength | ( | $a_maxlength | ) |
Set Max Length.
int | $a_maxlength | Max Length |
Definition at line 104 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilUserLoginAutoCompleteInputGUI\__construct(), ilSocialBookmarks\_initForm(), ilObjPaymentSettingsGUI\getERPform_eco(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjSystemFolderGUI\initBasicSettingsForm(), ilSetupGUI\initClientIniForm(), ilSetupGUI\initClientLoginForm(), ilSetupGUI\initContactDataForm(), ilObjSystemFolderGUI\initContactInformationForm(), ilObjSAHSLearningModuleGUI\initCreationForm(), ilObjContentObjectGUI\initCreationForm(), ilObjectPluginGUI\initEditForm(), ilObjFileBasedLMGUI\initEditForm(), ilObject2GUI\initEditForm(), ilObjMediaPoolGUI\initEditForm(), ilLPObjectsTableGUI\initFilter(), ilLPProgressTableGUI\initFilter(), ilSurveyQuestionblockbrowserTableGUI\initFilter(), ilTestQuestionBrowserTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilEvaluationAllTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilMediaPoolTableGUI\initFilter(), ilObjMediaPoolGUI\initFolderForm(), ilObjForumGUI\initForumCreateForm(), ilObjSystemFolderGUI\initJavaServerForm(), ilObjMediaPoolGUI\initMediaPoolPageForm(), ilObjStyleSheetGUI\initPropertiesForm(), ilObjForumGUI\initReplyEditForm(), ilObjWikiGUI\initSettingsForm(), ilSearchGUI\initStandardSearchForm(), ilObjStyleSheetGUI\initTagStyleForm(), ilObjForumGUI\initTopicCreateForm(), ilObjPaymentSettingsGUI\initVatForm(), ilFileSystemGUI\listFiles(), and ilObjPrivacySecurityGUI\showSecurity().
ilTextInputGUI::setSize | ( | $a_size | ) |
Set Size.
int | $a_size | Size |
Definition at line 124 of file class.ilTextInputGUI.php.
Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilUserLoginAutoCompleteInputGUI\__construct(), ilImageWizardInputGUI\__construct(), ilAnswerWizardInputGUI\__construct(), ilSingleChoiceWizardInputGUI\__construct(), ilMatchingWizardInputGUI\__construct(), ilObjStyleSettingsGUI\createPgGUIObject(), assNumericGUI\editQuestion(), assClozeTestGUI\editQuestion(), ilObjLearningResourcesSettingsGUI\editSettings(), ilObjPaymentSettingsGUI\generalSettingsObject(), ilSetupGUI\initClientLoginForm(), ilObjMailGUI\initForm(), ilCalendarRecurrenceGUI\initForm(), ilObjChatServerGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilLDAPSettingsGUI\initForm(), ilObjUserGUI\initForm(), ilObjLinkResourceGUI\initFormLink(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilObjectCopyGUI\initFormSearch(), ilObjSystemFolderGUI\initJavaServerIniForm(), ilPCTableGUI\initPropertiesForm(), ilECSSettingsGUI\initSettingsForm(), ilObjGroupGUI\membersObject(), ilObjCourseGUI\membersObject(), ilPageLayoutGUI\properties(), ilObjTestGUI\propertiesObject(), ilPCPlaceHolderGUI\propertyGUI(), ilMailFormGUI\searchUsers(), ilMailFormGUI\showForm(), ilStartUpGUI\showLogin(), ilMailSearchGUI\showResults(), and ilObjTaggingSettingsGUI\showUsers().
ilTextInputGUI::setSubmitFormOnEnter | ( | $a_val | ) |
Set submit form on enter.
boolean |
Definition at line 216 of file class.ilTextInputGUI.php.
ilTextInputGUI::setSuffix | ( | $a_value | ) |
Set suffix.
string | $a_value | suffix |
Definition at line 174 of file class.ilTextInputGUI.php.
ilTextInputGUI::setValidationFailureMessage | ( | $a_msg | ) |
Set message string for validation failure.
string | $a_msg |
Definition at line 69 of file class.ilTextInputGUI.php.
ilTextInputGUI::setValidationRegexp | ( | $a_value | ) |
Set validation regexp.
string | $a_value | regexp |
Definition at line 84 of file class.ilTextInputGUI.php.
ilTextInputGUI::setValue | ( | $a_value | ) |
Set Value.
string | $a_value | Value |
Reimplemented in ilMatchingWizardInputGUI, ilCategoryWizardInputGUI, ilTextWizardInputGUI, ilSingleChoiceWizardInputGUI, ilKVPWizardInputGUI, ilColorPickerInputGUI, ilErrorTextWizardInputGUI, ilImageWizardInputGUI, ilAnswerWizardInputGUI, ilMatchingPairWizardInputGUI, ilMultipleChoiceWizardInputGUI, and ilFormulaInputGUI.
Definition at line 49 of file class.ilTextInputGUI.php.
Referenced by assQuestionGUI\addBasicQuestionFormProperties(), ilUserProfile\addStandardFieldsToForm(), ilObjPaymentSettingsGUI\bmfSettingsObject(), ilCertificateGUI\certificateEditor(), ilObjForumGUI\editObject(), SurveyTextQuestionGUI\editQuestion(), SurveyMetricQuestionGUI\editQuestion(), SurveyMultipleChoiceQuestionGUI\editQuestion(), SurveySingleChoiceQuestionGUI\editQuestion(), SurveyMatrixQuestionGUI\editQuestion(), assJavaAppletGUI\editQuestion(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilPDNewsBlockGUI\editSettings(), ilObjPaymentSettingsGUI\epaySettingsObject(), ilObjPaymentSettingsGUI\generalSettingsObject(), ilLuceneAdvancedSearchFields\getFormElement(), ilAdvancedSearchGUI\initAdvancedMetaDataForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilObjMDSettingsGUI\initCopyrightEditForm(), ilObjRemoteCourseGUI\initEditTable(), ilCalendarAppointmentGUI\initForm(), ilObjSessionGUI\initForm(), ilBookmarkAdministrationGUI\initFormBookmark(), ilCourseObjectivesGUI\initFormLimits(), ilObjLinkResourceGUI\initFormLink(), ilLuceneSearchGUI\initFormSearch(), ilCalendarCategoryGUI\initFormSearch(), ilObjMediaCastSettingsGUI\initFormSettings(), ilObjLinkResourceGUI\initFormSettings(), ilObjCourseGUI\initInfoEditor(), ilPCTableGUI\initPropertiesForm(), ilECSSettingsGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilObjSurveyGUI\inviteObject(), ilAdvancedMDRecordGUI\parseSearch(), ilObjPaymentSettingsGUI\paypalSettingsObject(), ilObjChatGUI\renameObject(), ilForumModeratorsGUI\searchModeratorsForm(), setValueByArray(), ilMailAddressbookGUI\showAddressForm(), ilObjPrivacySecurityGUI\showSecurity(), and ilShopTopicsGUI\showTopicForm().
ilTextInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 154 of file class.ilTextInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
|
protected |
Definition at line 17 of file class.ilTextInputGUI.php.
Referenced by getMaxLength().
|
protected |
Definition at line 18 of file class.ilTextInputGUI.php.
Referenced by getSize().
|
protected |
Definition at line 22 of file class.ilTextInputGUI.php.
Referenced by getInlineStyle().
|
protected |
Definition at line 29 of file class.ilTextInputGUI.php.
Referenced by getSubmitFormOnEnter().
|
protected |
Definition at line 21 of file class.ilTextInputGUI.php.
Referenced by ilMultipleChoiceWizardInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), getSuffix(), ilMultipleChoiceWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), and ilSingleChoiceWizardInputGUI\insert().
|
protected |
Definition at line 20 of file class.ilTextInputGUI.php.
Referenced by getValidationFailureMessage().
|
protected |
Definition at line 19 of file class.ilTextInputGUI.php.
Referenced by getValidationRegexp().
|
protected |
Definition at line 16 of file class.ilTextInputGUI.php.
Referenced by ilRegExpInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilTRBLColorPickerInputGUI\checkInput(), getValue(), ilTextWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilImageWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\setValue(), ilAnswerWizardInputGUI\setValue(), ilImageWizardInputGUI\setValue(), ilSingleChoiceWizardInputGUI\setValue(), ilCategoryWizardInputGUI\setValue(), and ilMatchingWizardInputGUI\setValue().
|
protected |
Definition at line 26 of file class.ilTextInputGUI.php.
Referenced by getDataSourceSchema().
|
protected |
Definition at line 25 of file class.ilTextInputGUI.php.
Referenced by getDataSource().
|
protected |
Definition at line 28 of file class.ilTextInputGUI.php.
Referenced by getDataSourceDelimiter().
|
protected |
Definition at line 27 of file class.ilTextInputGUI.php.
Referenced by getDataSourceResultFormat().