ILIAS  Release_4_4_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
 setMultiValues (array $a_values)
 Set multi values.
 render ($a_mode="")
 Render item.
 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
 $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, ilSingleChoiceWizardInputGUI, ilAnswerWizardInputGUI, ilMatchingWizardInputGUI, ilErrorTextWizardInputGUI, ilMatrixRowWizardInputGUI, ilImageWizardInputGUI, ilOrderingTextWizardInputGUI, ilMatchingPairWizardInputGUI, ilTextWizardInputGUI, ilRegExpInputGUI, ilSelectBuilderInputGUI, ilFeedUrlInputGUI, ilLuceneQueryInputGUI, ilMultipleChoiceWizardInputGUI, ilColorPickerInputGUI, ilEssayKeywordWizardInputGUI, ilFormulaInputGUI, and ilMailQuickFilterInputGUI.

Definition at line 258 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 165 of file class.ilTextInputGUI.php.

References $css_class.

Referenced by render().

{
}

+ Here is the caller graph for this function:

ilTextInputGUI::getDataSource ( )

get datasource link for js autocomplete

Returns
String link to data generation script

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

References $ajax_datasource.

Referenced by render().

+ Here is the caller graph for this function:

ilTextInputGUI::getInlineStyle ( )

Get inline style.

Returns
string style

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

References $style_css.

Referenced by ilScaleInputGUI\render(), and render().

{
}

+ Here is the caller graph for this function:

ilTextInputGUI::getInputType ( )

get input type

public

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

Referenced by render().

{
return $this->input_type;
}

+ Here is the caller graph for this function:

ilTextInputGUI::getSubmitFormOnEnter ( )

Get submit form on enter.

Returns
boolean

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

References $submit_form_on_enter.

Referenced by render().

+ Here is the caller graph for this function:

ilTextInputGUI::getSuffix ( )

Get suffix.

Returns
string suffix

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

References $suffix.

Referenced by ilScaleInputGUI\render(), and render().

{
return $this->suffix;
}

+ Here is the caller graph for this function:

ilTextInputGUI::getTableFilterHTML ( )

Get HTML for table filter.

Implements ilTableFilterItem.

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

References render().

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

+ Here is the call graph for this function:

ilTextInputGUI::getToolbarHTML ( )

Get HTML for toolbar.

Implements ilToolbarItem.

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

References render().

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

+ Here is the call graph for this function:

ilTextInputGUI::getValidationFailureMessage ( )

Definition at line 85 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 105 of file class.ilTextInputGUI.php.

References $validationRegexp.

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

+ Here is the caller graph for this function:

ilTextInputGUI::getValue ( )

Get Value.

Returns
string Value

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

References $value.

Referenced by ilColorPickerInputGUI\insert(), ilScaleInputGUI\render(), and render().

{
return $this->value;
}

+ Here is the caller graph for this function:

ilTextInputGUI::insert ( $a_tpl)

Insert property html.

Returns
int Size

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

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

References render().

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

+ Here is the call graph for this function:

ilTextInputGUI::isHtmlAutoCompleteDisabled ( )
Returns
boolean

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

References $autocomplete_disabled.

Referenced by render().

+ Here is the caller graph for this function:

ilTextInputGUI::render (   $a_mode = "")

Render item.

Reimplemented in ilScaleInputGUI.

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

References ilFormPropertyGUI\$postvar, $tpl, $value, getCssClass(), getDataSource(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getHiddenTag(), getInlineStyle(), getInputType(), getMaxLength(), ilFormPropertyGUI\getMulti(), ilFormPropertyGUI\getMultiIconsHTML(), ilFormPropertyGUI\getMultiValues(), ilFormPropertyGUI\getPostVar(), getSize(), getSubmitFormOnEnter(), getSuffix(), getValue(), iljQueryUtil\initjQuery(), iljQueryUtil\initjQueryUI(), isHtmlAutoCompleteDisabled(), and ilUtil\prepareFormOutput().

Referenced by getTableFilterHTML(), getToolbarHTML(), and insert().

{
$tpl = new ilTemplate("tpl.prop_textinput.html", true, true, "Services/Form");
if (strlen($this->getValue()))
{
$tpl->setCurrentBlock("prop_text_propval");
$tpl->setVariable("PROPERTY_VALUE", ilUtil::prepareFormOutput($this->getValue()));
$tpl->parseCurrentBlock();
}
if (strlen($this->getInlineStyle()))
{
$tpl->setCurrentBlock("stylecss");
$tpl->setVariable("CSS_STYLE", ilUtil::prepareFormOutput($this->getInlineStyle()));
$tpl->parseCurrentBlock();
}
if(strlen($this->getCssClass()))
{
$tpl->setCurrentBlock("classcss");
$tpl->setVariable('CLASS_CSS', ilUtil::prepareFormOutput($this->getCssClass()));
$tpl->parseCurrentBlock();
}
if ($this->getSubmitFormOnEnter())
{
$tpl->touchBlock("submit_form_on_enter");
}
switch($this->getInputType())
{
case 'password':
$tpl->setVariable('PROP_INPUT_TYPE','password');
break;
case 'hidden':
$tpl->setVariable('PROP_INPUT_TYPE','hidden');
break;
case 'text':
default:
$tpl->setVariable('PROP_INPUT_TYPE','text');
}
$tpl->setVariable("ID", $this->getFieldId());
$tpl->setVariable("SIZE", $this->getSize());
if($this->getMaxLength() != null)
$tpl->setVariable("MAXLENGTH", $this->getMaxLength());
if (strlen($this->getSuffix())) $tpl->setVariable("INPUT_SUFFIX", $this->getSuffix());
$postvar = $this->getPostVar();
if($this->getMulti() && substr($postvar, -2) != "[]")
{
$postvar .= "[]";
}
if ($this->getDisabled())
{
if($this->getMulti())
{
$value = $this->getMultiValues();
$hidden = "";
if(is_array($value))
{
foreach($value as $item)
{
$hidden .= $this->getHiddenTag($postvar, $item);
}
}
}
else
{
$hidden = $this->getHiddenTag($postvar, $this->getValue());
}
if($hidden)
{
$tpl->setVariable("DISABLED", " disabled=\"disabled\"");
$tpl->setVariable("HIDDEN_INPUT", $hidden);
}
}
else
{
$tpl->setVariable("POST_VAR", $postvar);
}
// use autocomplete feature?
if ($this->getDataSource())
{
include_once "Services/jQuery/classes/class.iljQueryUtil.php";
if ($this->getMulti())
{
$tpl->setCurrentBlock("ac_multi");
$tpl->setVariable('MURL_AUTOCOMPLETE', $this->getDataSource());
$tpl->setVariable('ID_AUTOCOMPLETE', $this->getFieldId());
$tpl->parseCurrentBlock();
// set to fields that start with autocomplete selector
$sel_auto = '[id^="'.$this->getFieldId().'"]';
}
else
{
// use id for autocomplete selector
$sel_auto = "#".$this->getFieldId();
}
if(!$this->ajax_datasource_delimiter)
{
$tpl->setCurrentBlock("autocomplete_bl");
$tpl->setVariable('SEL_AUTOCOMPLETE', $sel_auto);
$tpl->setVariable('URL_AUTOCOMPLETE', $this->getDataSource());
$tpl->parseCurrentBlock();
}
else
{
$tpl->setCurrentBlock("autocomplete_bl");
$tpl->setVariable('AUTOCOMPLETE_DELIMITER', $this->ajax_datasource_delimiter);
$tpl->setVariable('SEL_AUTOCOMPLETE_DELIMITER', $sel_auto);
$tpl->setVariable('URL_AUTOCOMPLETE_DELIMITER', $this->getDataSource());
$tpl->parseCurrentBlock();
}
}
if ($a_mode == "toolbar")
{
// block-inline hack, see: http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/
// -moz-inline-stack for FF2
// zoom 1; *display:inline for IE6 & 7
$tpl->setVariable("STYLE_PAR", 'display: -moz-inline-stack; display:inline-block; zoom: 1; *display:inline;');
}
else
{
$tpl->setVariable("STYLE_PAR", '');
}
{
$tpl->setVariable("AUTOCOMPLETE", "autocomplete=\"off\"");
}
// multi icons
if($this->getMulti() && !$a_mode && !$this->getDisabled())
{
$tpl->setVariable("MULTI_ICONS", $this->getMultiIconsHTML());
}
return $tpl->get();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTextInputGUI::setCssClass (   $a_class)

Definition at line 160 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 337 of file class.ilTextInputGUI.php.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), 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::setDisableHtmlAutoComplete (   $autocomplete)
Parameters
boolean$autocomplete

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

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

Set inline style.

Parameters
string$a_stylestyle

Definition at line 145 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 218 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 115 of file class.ilTextInputGUI.php.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilSocialBookmarks\_initForm(), 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(), ilPresentationListTableGUI\initFilter(), ilSurveyQuestionblockbrowserTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilAccountCodesTableGUI\initFilter(), ilTermListTableGUI\initFilter(), ilLPObjectStatisticsLPTableGUI\initFilter(), ilMediaPoolTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilEvaluationAllTableGUI\initFilter(), ilRegistrationCodesTableGUI\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 343 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 135 of file class.ilTextInputGUI.php.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilImageWizardInputGUI\__construct(), ilSingleChoiceWizardInputGUI\__construct(), ilMatchingWizardInputGUI\__construct(), FormMailCodesGUI\__construct(), ilAnswerWizardInputGUI\__construct(), ilAccountRegistrationGUI\__initForm(), ilMemberAgreementGUI\addCustomFields(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjTestSettingsGeneralGUI\buildForm(), ilSurveyEditorGUI\createQuestionObject(), ilObjTestGUI\createQuestionObject(), ilObjLearningResourcesSettingsGUI\editSettings(), ilObjStyleSettingsGUI\initAddPageLayoutForm(), ilSetupGUI\initClientLoginForm(), ilObjPortfolioGUI\initCreateForm(), ilObjectPluginGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilObjCloudGUI\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(), ilMailSearchGUI\initSearchForm(), ilObjFileBasedLMGUI\initSettingsForm(), ilECSSettingsGUI\initSettingsForm(), ilAdvancedMDRecordGUI\parseFilter(), assNumericGUI\populateAnswerSpecificFormPart(), ilPCPlaceHolderGUI\propertyGUI(), 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 238 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 196 of file class.ilTextInputGUI.php.

Referenced by ilObjMailGUI\initForm().

{
$this->suffix = $a_value;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setValidationFailureMessage (   $a_msg)

Set message string for validation failure.

Returns
Parameters
string$a_msg

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

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

Set validation regexp.

Parameters
string$a_valueregexp

Definition at line 95 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, ilOrderingTextWizardInputGUI, ilMatrixRowWizardInputGUI, ilSingleChoiceWizardInputGUI, ilImageWizardInputGUI, ilAnswerWizardInputGUI, ilTextWizardInputGUI, ilColorPickerInputGUI, ilKVPWizardInputGUI, ilErrorTextWizardInputGUI, ilMatchingPairWizardInputGUI, ilFormulaInputGUI, ilMultipleChoiceWizardInputGUI, and ilEssayKeywordWizardInputGUI.

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

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

Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilPaymentCouponGUI\addCoupon(), ilObjPaymentSettingsGUI\addCurrencyObject(), ilDAVCronDiskQuota\addCustomSettingsToForm(), ilUserProfile\addStandardFieldsToForm(), ilObjSystemFolderGUI\benchmarkObject(), ilObjTestSettingsGeneralGUI\buildForm(), 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(), ilAdvancedMDSettingsGUI\initFieldForm(), ilExtIdGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilAttendanceList\initForm(), ilAdvancedMDSettingsGUI\initForm(), ilObjSessionGUI\initForm(), ilObjGroupGUI\initForm(), ilBookmarkAdministrationGUI\initFormBookmark(), ilECSMappingSettingsGUI\initFormCSettings(), ilCourseObjectivesGUI\initFormLimits(), ilCalendarCategoryGUI\initFormSearch(), ilCASSettingsGUI\initFormSettings(), ilObjMediaCastSettingsGUI\initFormSettings(), ilObjLinkResourceGUI\initFormSettings(), ilCourseObjectivesGUI\initFormTitle(), ilObjSystemFolderGUI\initHTTPSForm(), ilObjCourseGUI\initInfoEditor(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPCTableGUI\initPropertiesForm(), ilObjFileGUI\initPropertiesForm(), ilObjSurveyGUI\initPropertiesForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilECSSettingsGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilAdvancedMDRecordGUI\parseSearch(), ilSurveyPhrasesGUI\phraseEditor(), assJavaAppletGUI\populateQuestionSpecificFormPart(), setValueByArray(), ilShopGUI\showGeneralFilter(), 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

Definition at line 176 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_delimiter
protected

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

ilTextInputGUI::$autocomplete_disabled = false
protected

Definition at line 33 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 28 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: