ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTextInputGUI Class Reference

This class represents a text property in a property form. More...

+ Inheritance diagram for ilTextInputGUI:
+ Collaboration diagram for ilTextInputGUI:

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.
 setCssClass ($a_class)
 getCssClass ()
 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 js autocomplete
 setDataSource ($href, $a_delimiter=null)
 set datasource link for js autocomplete
 setDataSourceSubmitOnSelection ($a_stat)
 getDataSourceSubmitOnSelection ()
 setDataSourceSubmitUrl ($a_url)
 getDataSourceSubmitUrl ()
 setMultiValues (array $a_values)
 Set multi values.
 insert (&$a_tpl)
 Insert property html.
 getTableFilterHTML ()
 Get HTML for table filter.
 getToolbarHTML ()
 Get HTML for toolbar.
 setDisableHtmlAutoComplete ($autocomplete)
 isHtmlAutoCompleteDisabled ()
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem.
 getSubItems ()
 Get Subitems.
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively
 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)
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi.
 getMulti ()
 Get Multi.
 getMultiValues ()
 Get multi values.
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g.

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
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
 $sub_items = array()
- Protected Attributes inherited from ilFormPropertyGUI
 $type
 $title
 $postvar
 $info
 $alert
 $required = false
 $parentgui
 $parentform
 $hidden_title = ""
 $multi = false
 $multi_sortable = false
 $multi_addremove = true
 $multi_values

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type.
 getMultiIconsHTML ()
 Get HTML for multiple value icons.

Detailed Description

This class represents a text property in a property form.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 16 of file class.ilTextInputGUI.php.

Constructor & Destructor Documentation

ilTextInputGUI::__construct (   $a_title = "",
  $a_postvar = "" 
)

Member Function Documentation

ilTextInputGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Reimplemented from ilFormPropertyGUI.

Reimplemented in ilTRBLColorPickerInputGUI, ilCategoryWizardInputGUI, ilKVPWizardInputGUI, ilErrorTextWizardInputGUI, ilSingleChoiceWizardInputGUI, ilAnswerWizardInputGUI, ilMatrixRowWizardInputGUI, ilMatchingWizardInputGUI, ilImageWizardInputGUI, ilMatchingPairWizardInputGUI, ilTextWizardInputGUI, ilKprimChoiceWizardInputGUI, ilRegExpInputGUI, ilSelectBuilderInputGUI, ilFeedUrlInputGUI, ilLuceneQueryInputGUI, ilMultipleChoiceWizardInputGUI, ilColorPickerInputGUI, ilEssayKeywordWizardInputGUI, ilFormulaInputGUI, and ilMailQuickFilterInputGUI.

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 ilUtil\stripSlashes().

{
global $lng;
if(!$this->getMulti())
{
if ($this->getRequired() && trim($_POST[$this->getPostVar()]) == "")
{
$this->setAlert($lng->txt("msg_input_is_required"));
return false;
}
else if (strlen($this->getValidationRegexp()))
{
if (!preg_match($this->getValidationRegexp(), $_POST[$this->getPostVar()]))
{
$this->setAlert(
$lng->txt('msg_wrong_format')
);
return FALSE;
}
}
}
else
{
foreach($_POST[$this->getPostVar()] as $idx => $value)
{
}
$_POST[$this->getPostVar()] = array_unique($_POST[$this->getPostVar()]);
if ($this->getRequired() && !trim(implode("", $_POST[$this->getPostVar()])))
{
$this->setAlert($lng->txt("msg_input_is_required"));
return false;
}
else if (strlen($this->getValidationRegexp()))
{
$reg_valid = true;
foreach($_POST[$this->getPostVar()] as $value)
{
if (!preg_match($this->getValidationRegexp(), $value))
{
$reg_valid = false;
break;
}
}
if(!$reg_valid)
{
$this->setAlert(
$lng->txt('msg_wrong_format')
);
return false;
}
}
}
return $this->checkSubItemsInput();
}

+ Here is the call graph for this function:

ilTextInputGUI::getCssClass ( )

Definition at line 167 of file class.ilTextInputGUI.php.

References $css_class.

{
}
ilTextInputGUI::getDataSource ( )

get datasource link for js autocomplete

Returns
String link to data generation script

Definition at line 330 of file class.ilTextInputGUI.php.

References $ajax_datasource.

ilTextInputGUI::getDataSourceSubmitOnSelection ( )

Definition at line 350 of file class.ilTextInputGUI.php.

References $ajax_datasource_commit.

ilTextInputGUI::getDataSourceSubmitUrl ( )
ilTextInputGUI::getInlineStyle ( )

Get inline style.

Returns
string style

Definition at line 157 of file class.ilTextInputGUI.php.

References $style_css.

{
}
ilTextInputGUI::getInputType ( )

get input type

public

Definition at line 230 of file class.ilTextInputGUI.php.

{
return $this->input_type;
}
ilTextInputGUI::getSubmitFormOnEnter ( )

Get submit form on enter.

Returns
boolean

Definition at line 250 of file class.ilTextInputGUI.php.

References $submit_form_on_enter.

ilTextInputGUI::getSuffix ( )

Get suffix.

Returns
string suffix

Definition at line 208 of file class.ilTextInputGUI.php.

References $suffix.

{
return $this->suffix;
}
ilTextInputGUI::getTableFilterHTML ( )

Get HTML for table filter.

Implements ilTableFilterItem.

Definition at line 555 of file class.ilTextInputGUI.php.

{
$html = $this->render();
return $html;
}
ilTextInputGUI::getToolbarHTML ( )

Get HTML for toolbar.

Implements ilToolbarItem.

Definition at line 564 of file class.ilTextInputGUI.php.

Referenced by ilDataCollectionRecordViewViewdefinitionGUI\postOutputProcessing().

{
$html = $this->render("toolbar");
return $html;
}

+ Here is the caller graph for this function:

ilTextInputGUI::getValidationFailureMessage ( )

Definition at line 87 of file class.ilTextInputGUI.php.

References $validationFailureMessage.

Referenced by checkInput().

+ Here is the caller graph for this function:

ilTextInputGUI::getValidationRegexp ( )

Get validation regexp.

Returns
string regexp

Definition at line 107 of file class.ilTextInputGUI.php.

References $validationRegexp.

Referenced by ilSelectBuilderInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), and checkInput().

+ Here is the caller graph for this function:

ilTextInputGUI::getValue ( )

Get Value.

Returns
string Value

Definition at line 71 of file class.ilTextInputGUI.php.

References $value.

Referenced by ilColorPickerInputGUI\insert().

{
return $this->value;
}

+ Here is the caller graph for this function:

ilTextInputGUI::insert ( $a_tpl)

Insert property html.

Returns
int Size

Reimplemented in ilSingleChoiceWizardInputGUI, ilCategoryWizardInputGUI, ilMatchingWizardInputGUI, ilKVPWizardInputGUI, ilErrorTextWizardInputGUI, ilImageWizardInputGUI, ilAnswerWizardInputGUI, ilMultipleChoiceWizardInputGUI, ilEssayKeywordWizardInputGUI, ilMatrixRowWizardInputGUI, ilMatchingPairWizardInputGUI, and ilTextWizardInputGUI.

Definition at line 543 of file class.ilTextInputGUI.php.

{
$html = $this->render();
$a_tpl->setCurrentBlock("prop_generic");
$a_tpl->setVariable("PROP_GENERIC", $html);
$a_tpl->parseCurrentBlock();
}
ilTextInputGUI::isHtmlAutoCompleteDisabled ( )
Returns
boolean

Definition at line 581 of file class.ilTextInputGUI.php.

References $autocomplete_disabled.

ilTextInputGUI::setCssClass (   $a_class)

Definition at line 162 of file class.ilTextInputGUI.php.

{
$this->css_class = $a_class;
}
ilTextInputGUI::setDataSource (   $href,
  $a_delimiter = null 
)

set datasource link for js autocomplete

Parameters
Stringlink to data generation script

Definition at line 339 of file class.ilTextInputGUI.php.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilObjectPermissionStatusGUI\addToolbar(), ilAddressbookTableGUI\initFilter(), ilUserTableGUI\initFilter(), ilObjSurveyGUI\initPropertiesForm(), ilPermission2GUI\owner(), and ilPaymentTrusteeGUI\showTrustees().

{
$this->ajax_datasource = $href;
$this->ajax_datasource_delimiter = $a_delimiter;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setDataSourceSubmitOnSelection (   $a_stat)

Definition at line 345 of file class.ilTextInputGUI.php.

{
$this->ajax_datasource_commit = $a_stat;
}
ilTextInputGUI::setDataSourceSubmitUrl (   $a_url)

Definition at line 355 of file class.ilTextInputGUI.php.

{
$this->ajax_datasource_commit_url = $a_url;
}
ilTextInputGUI::setDisableHtmlAutoComplete (   $autocomplete)
Parameters
boolean$autocomplete

Definition at line 573 of file class.ilTextInputGUI.php.

{
$this->autocomplete_disabled = $autocomplete;
}
ilTextInputGUI::setInlineStyle (   $a_style)

Set inline style.

Parameters
string$a_stylestyle

Definition at line 147 of file class.ilTextInputGUI.php.

Referenced by assClozeTestGUI\populateNumericGapFormPart().

{
$this->style_css = $a_style;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setInputType (   $a_type)

set input type

public

Parameters
stringinput type password | text

Definition at line 220 of file class.ilTextInputGUI.php.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), and __construct().

{
$this->input_type = $a_type;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setMaxLength (   $a_maxlength)

Set Max Length.

Parameters
int$a_maxlengthMax Length

Definition at line 117 of file class.ilTextInputGUI.php.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilSocialBookmarks\_initForm(), assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilObjStyleSheetGUI\createObject(), ilObjMediaCastGUI\editCastItemObject(), ilObjMediaCastGUI\initAddCastItemForm(), ilPCIIMTriggerEditorGUI\initAreaEditingForm(), ilImageMapEditorGUI\initAreaEditingForm(), ilObjExerciseGUI\initAssignmentForm(), ilRatingCategoryGUI\initCategoryForm(), ilSetupGUI\initClientIniForm(), ilSetupGUI\initClientLoginForm(), ilSetupGUI\initContactDataForm(), ilObjSystemFolderGUI\initContactInformationForm(), ilObjPortfolioGUI\initCopyPageFormOptions(), ilObjPortfolioGUI\initCreateForm(), ilSetupGUI\initDbSlaveForm(), ilPCFileListGUI\initEditForm(), ilTestQuestionBrowserTableGUI\initFilter(), ilLPObjectStatisticsDailyTableGUI\initFilter(), ilLPObjectStatisticsTableGUI\initFilter(), ilSurveyQuestionblockbrowserTableGUI\initFilter(), ilPresentationListTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilAccountCodesTableGUI\initFilter(), ilTermListTableGUI\initFilter(), ilLPObjectStatisticsLPTableGUI\initFilter(), ilMediaPoolTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilRegistrationCodesTableGUI\initFilter(), ilEvaluationAllTableGUI\initFilter(), ilLPTableBaseGUI\initFilter(), ilObjMediaPoolGUI\initFolderForm(), ilBasicSkillTemplateGUI\initForm(), ilSkillCategoryGUI\initForm(), ilBasicSkillGUI\initForm(), ilPCInteractiveImageGUI\initForm(), ilSkillTreeNodeGUI\initForm(), ilObjUserFolderGUI\initFormGeneralSettings(), ilObjSystemFolderGUI\initJavaServerForm(), ilBasicSkillGUI\initLevelForm(), ilObjMediaPoolGUI\initMediaPoolPageForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjPortfolioBaseGUI\initPageForm(), ilSkillProfileGUI\initProfileForm(), ilObjStyleSheetGUI\initPropertiesForm(), ilMDEditorGUI\initQuickEditForm(), ilWikiPageGUI\initRenameForm(), ilObjTaxonomyGUI\initSettingsForm(), ilSettingsTemplateGUI\initSettingsTemplateForm(), ilObjStyleSheetGUI\initTagStyleForm(), ilObjTaxonomyGUI\initTaxNodeForm(), ilObjFileAccessSettingsGUI\initUploadSettingsForm(), ilObjPaymentSettingsGUI\initVatForm(), ilFileSystemGUI\listFiles(), ilObjGlossaryGUI\listTerms(), ilFileSystemGUI\renameFileForm(), ilPaymentStatisticGUI\searchUser(), ilObjPaymentSettingsGUI\searchUserSPObject(), and ilObjContentObjectGUI\showTooltipList().

{
$this->maxlength = $a_maxlength;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setMultiValues ( array  $a_values)

Set multi values.

Parameters
array$a_values

Reimplemented from ilFormPropertyGUI.

Definition at line 365 of file class.ilTextInputGUI.php.

References $value.

Referenced by setValue().

{
foreach($a_values as $idx => $value)
{
$a_values[$idx] = trim($value);
if($a_values[$idx] == "")
{
unset($a_values[$idx]);
}
}
}

+ Here is the caller graph for this function:

ilTextInputGUI::setSize (   $a_size)

Set Size.

Parameters
int$a_sizeSize

Definition at line 137 of file class.ilTextInputGUI.php.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilImageWizardInputGUI\__construct(), ilAnswerWizardInputGUI\__construct(), ilSingleChoiceWizardInputGUI\__construct(), ilMatchingWizardInputGUI\__construct(), FormMailCodesGUI\__construct(), ilAccountRegistrationGUI\__initForm(), ilMemberAgreementGUI\addCustomFields(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), ilObjTestGUI\addQuestionObject(), ilSurveyEditorGUI\createQuestionObject(), ilObjTestGUI\createQuestionObject(), ilObjSurveyGUI\infoScreen(), ilObjStyleSettingsGUI\initAddPageLayoutForm(), ilSetupGUI\initBasicSettingsForm(), ilSetupGUI\initClientLoginForm(), ilObjPortfolioGUI\initCreateForm(), ilObjectPluginGUI\initCreateForm(), ilObjCloudGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilObjectGUI\initCreateForm(), ilObjSAHSLearningModuleGUI\initCreationForm(), ilObjectPluginGUI\initEditForm(), ilObjPortfolioGUI\initEditForm(), ilObjectGUI\initEditForm(), ilSurveyParticipantsGUI\initExternalRaterForm(), ilObjectCustomUserFieldsGUI\initFieldForm(), ilObjMailGUI\initForm(), ilCalendarRecurrenceGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilPageLayoutGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilLDAPSettingsGUI\initForm(), ilObjUserGUI\initForm(), ilObjLinkResourceGUI\initFormLink(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilObjectCopyGUI\initFormSearch(), ilConsultationHoursGUI\initFormSequence(), ilContainerReferenceGUI\initFormTitle(), ilObjForumGUI\initForumCreateForm(), ilSurveyParticipantsGUI\initMailRatersForm(), ilPCTableGUI\initPropertiesForm(), ilPCSourceCodeGUI\initPropertyForm(), ilMailSearchGUI\initSearchForm(), ilObjFileBasedLMGUI\initSettingsForm(), ilECSSettingsGUI\initSettingsForm(), ilWikiPageGUI\insertWikiLink(), assNumericGUI\populateAnswerSpecificFormPart(), ilPCPlaceHolderGUI\propertyGUI(), ilSurveyExecutionGUI\runShowFinishedPage(), ilMailFormGUI\searchUsers(), ilObjSurveyAdministrationGUI\settingsObject(), ilMailFormGUI\showForm(), ilStartUpGUI\showLoginForm(), ilStartUpGUI\showOpenIdLoginForm(), and ilObjTaggingSettingsGUI\showUsers().

{
$this->size = $a_size;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setSubmitFormOnEnter (   $a_val)

Set submit form on enter.

Parameters
boolean

Definition at line 240 of file class.ilTextInputGUI.php.

Referenced by ilObjCourseGUI\initEditForm(), ilMailFolderTableGUI\initFilter(), and ilObjGroupGUI\initForm().

{
$this->submit_form_on_enter = $a_val;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setSuffix (   $a_value)

Set suffix.

Parameters
string$a_valuesuffix

Definition at line 198 of file class.ilTextInputGUI.php.

{
$this->suffix = $a_value;
}
ilTextInputGUI::setValidationFailureMessage (   $a_msg)

Set message string for validation failure.

Returns
Parameters
string$a_msg

Definition at line 82 of file class.ilTextInputGUI.php.

{
$this->validationFailureMessage = $a_msg;
}
ilTextInputGUI::setValidationRegexp (   $a_value)

Set validation regexp.

Parameters
string$a_valueregexp

Definition at line 97 of file class.ilTextInputGUI.php.

Referenced by ilOpenIdSettingsGUI\initFormProvider(), and ilPermissionGUI\initRoleForm().

{
$this->validationRegexp = $a_value;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setValue (   $a_value)

Set Value.

Parameters
string$a_valueValue

Reimplemented in ilMatchingWizardInputGUI, ilCategoryWizardInputGUI, ilMatrixRowWizardInputGUI, ilKprimChoiceWizardInputGUI, ilTextWizardInputGUI, ilColorPickerInputGUI, ilSingleChoiceWizardInputGUI, ilAnswerWizardInputGUI, ilImageWizardInputGUI, ilKVPWizardInputGUI, ilErrorTextWizardInputGUI, ilMatchingPairWizardInputGUI, ilFormulaInputGUI, ilMultipleChoiceWizardInputGUI, and ilEssayKeywordWizardInputGUI.

Definition at line 56 of file class.ilTextInputGUI.php.

References ilFormPropertyGUI\getMulti(), and setMultiValues().

Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilPaymentCouponGUI\addCoupon(), ilObjPaymentSettingsGUI\addCurrencyObject(), ilDAVCronDiskQuota\addCustomSettingsToForm(), ilUserProfile\addStandardFieldsToForm(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilOrgUnitTypeFormGUI\addTranslationInputs(), ilObjSystemFolderGUI\benchmarkObject(), ilTestScoringGUI\buildManScoringParticipantForm(), ilCertificateGUI\certificateEditor(), ilObjPaymentSettingsGUI\editCurrencyObject(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilObjPaymentSettingsGUI\editVendorObject(), ilLuceneAdvancedSearchFields\getFormElement(), ilDataCollectionDatatype\getInputField(), ilAdvancedSearchGUI\initAdvancedMetaDataForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilObjMDSettingsGUI\initCopyrightEditForm(), ilSetupGUI\initDbSlaveForm(), ilRemoteObjectBaseGUI\initEditForm(), ilDidacticTemplateSettingsGUI\initEditTemplate(), ilLearningProgressBaseGUI\initEditUserForm(), ilAdvancedSearchFilterGUI\initFilter(), ilShopFilterGUI\initFilter(), ilExtIdGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilAttendanceList\initForm(), ilAdvancedMDSettingsGUI\initForm(), ilObjSessionGUI\initForm(), ilObjGroupGUI\initForm(), ilBookmarkAdministrationGUI\initFormBookmark(), ilECSMappingSettingsGUI\initFormCSettings(), ilCalendarCategoryGUI\initFormSearch(), ilCASSettingsGUI\initFormSettings(), ilObjMediaCastSettingsGUI\initFormSettings(), ilObjLinkResourceGUI\initFormSettings(), ilCourseObjectivesGUI\initFormTitle(), ilObjCourseGUI\initInfoEditor(), ilObjUserFolderGUI\initNewAccountMailForm(), ilObjFileGUI\initPropertiesForm(), ilObjSurveyGUI\initPropertiesForm(), ilECSSettingsGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilLOEditorGUI\initTestForm(), ilSurveyPhrasesGUI\phraseEditor(), assJavaAppletGUI\populateQuestionSpecificFormPart(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), setValueByArray(), ilPurchaseBMFGUI\showPersonalData(), ilPurchaseBaseGUI\showPersonalData(), and ilShopTopicsGUI\showTopicForm().

{
if($this->getMulti() && is_array($a_value))
{
$this->setMultiValues($a_value);
$a_value = array_shift($a_value);
}
$this->value = $a_value;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTextInputGUI::setValueByArray (   $a_values)

Set value by array.

Parameters
array$a_valuesvalue array

Reimplemented in ilSelectBuilderInputGUI.

Definition at line 178 of file class.ilTextInputGUI.php.

References ilFormPropertyGUI\getPostVar(), and setValue().

{
$this->setValue($a_values[$this->getPostVar()]);
}

+ Here is the call graph for this function:

Field Documentation

ilTextInputGUI::$ajax_datasource
protected

Definition at line 26 of file class.ilTextInputGUI.php.

Referenced by getDataSource().

ilTextInputGUI::$ajax_datasource_commit = FALSE
protected

Definition at line 28 of file class.ilTextInputGUI.php.

Referenced by getDataSourceSubmitOnSelection().

ilTextInputGUI::$ajax_datasource_commit_url
protected

Definition at line 29 of file class.ilTextInputGUI.php.

Referenced by getDataSourceSubmitUrl().

ilTextInputGUI::$ajax_datasource_delimiter
protected

Definition at line 27 of file class.ilTextInputGUI.php.

ilTextInputGUI::$autocomplete_disabled = false
protected

Definition at line 35 of file class.ilTextInputGUI.php.

Referenced by isHtmlAutoCompleteDisabled().

ilTextInputGUI::$css_class
protected

Definition at line 25 of file class.ilTextInputGUI.php.

Referenced by getCssClass().

ilTextInputGUI::$maxlength = 200
protected

Definition at line 19 of file class.ilTextInputGUI.php.

Referenced by getMaxLength().

ilTextInputGUI::$size = 40
protected

Definition at line 20 of file class.ilTextInputGUI.php.

Referenced by getSize().

ilTextInputGUI::$style_css
protected

Definition at line 24 of file class.ilTextInputGUI.php.

Referenced by getInlineStyle().

ilTextInputGUI::$submit_form_on_enter = false
protected

Definition at line 30 of file class.ilTextInputGUI.php.

Referenced by getSubmitFormOnEnter().

ilTextInputGUI::$validationFailureMessage = ''
protected

Definition at line 22 of file class.ilTextInputGUI.php.

Referenced by getValidationFailureMessage().

ilTextInputGUI::$validationRegexp
protected

Definition at line 21 of file class.ilTextInputGUI.php.

Referenced by getValidationRegexp().


The documentation for this class was generated from the following file: