ILIAS  release_4-3 Revision
 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.
 setMulti ($a_multi, $a_sortable=false)
 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)
 set datasource link for js autocomplete
 setMultiValues (array $a_values)
 Set multi values.
 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)
 setMulti ($a_multi)
 Set Multi.
 getMulti ()
 Get Multi.
 getMultiValues ()
 Get multi values.

Protected Member Functions

 render ($a_mode="")
 Render item.

Protected Attributes

 $value
 $maxlength = 200
 $size = 40
 $validationRegexp
 $validationFailureMessage = ''
 $suffix
 $style_css
 $css_class
 $ajax_datasource
 $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
 $hidden_title = ""
 $multi
 $multi_values

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 15 of file class.ilTextInputGUI.php.

Constructor & Destructor Documentation

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

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

Reimplemented from ilFormPropertyGUI.

Reimplemented in ilCategoryWizardInputGUI, ilMatchingWizardInputGUI, ilKVPWizardInputGUI, ilMatrixRowWizardInputGUI, ilErrorTextWizardInputGUI, ilSingleChoiceWizardInputGUI, ilAnswerWizardInputGUI, ilImageWizardInputGUI, ilMatchingPairWizardInputGUI, ilTRBLColorPickerInputGUI, ilFeedUrlInputGUI, ilTextWizardInputGUI, ilRegExpInputGUI, ilLuceneQueryInputGUI, ilScaleInputGUI, and ilColorPickerInputGUI.

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

References setInputType().

{
parent::__construct($a_title, $a_postvar);
$this->setInputType("text");
$this->validationRegexp = "";
}

+ Here is the call graph for this function:

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 ilKVPWizardInputGUI, ilTRBLColorPickerInputGUI, ilCategoryWizardInputGUI, ilErrorTextWizardInputGUI, ilSingleChoiceWizardInputGUI, ilAnswerWizardInputGUI, ilMatchingWizardInputGUI, ilMatrixRowWizardInputGUI, ilImageWizardInputGUI, ilMatchingPairWizardInputGUI, ilTextWizardInputGUI, ilRegExpInputGUI, ilMultipleChoiceWizardInputGUI, ilEssayKeywordWizardInputGUI, ilFeedUrlInputGUI, ilLuceneQueryInputGUI, ilColorPickerInputGUI, and ilFormulaInputGUI.

Definition at line 255 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 162 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 325 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 152 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 225 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 245 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 203 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 500 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 509 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 82 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 102 of file class.ilTextInputGUI.php.

References $validationRegexp.

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

+ Here is the caller graph for this function:

ilTextInputGUI::getValue ( )

Get Value.

Returns
string Value

Definition at line 61 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, ilKVPWizardInputGUI, ilErrorTextWizardInputGUI, ilImageWizardInputGUI, ilAnswerWizardInputGUI, ilMultipleChoiceWizardInputGUI, ilEssayKeywordWizardInputGUI, ilMatrixRowWizardInputGUI, ilMatchingPairWizardInputGUI, and ilTextWizardInputGUI.

Definition at line 488 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::render (   $a_mode = "")
protected

Render item.

Reimplemented in ilScaleInputGUI.

Definition at line 355 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(), 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();
}
$tpl->setCurrentBlock("prop_text_autocomplete");
$tpl->setVariable('SEL_AUTOCOMPLETE', $sel_auto);
$tpl->setVariable('URL_AUTOCOMPLETE', $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", '');
}
// multi icons
if($this->getMulti() && !$a_mode && !$this->getDisabled())
{
$tpl->setVariable("MULTI_ICONS", $this->getMultiIconsHTML($this->multi_sortable));
}
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 157 of file class.ilTextInputGUI.php.

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

set datasource link for js autocomplete

Parameters
Stringlink to data generation script

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

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilUserTableGUI\initFilter(), ilPermission2GUI\owner(), ilMailAddressbookGUI\showAddressbook(), and ilPaymentTrusteeGUI\showTrustees().

{
$this->ajax_datasource = $href;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setInlineStyle (   $a_style)

Set inline style.

Parameters
string$a_stylestyle

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

Referenced by assClozeTestGUI\editQuestion().

{
$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 215 of file class.ilTextInputGUI.php.

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

{
$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 112 of file class.ilTextInputGUI.php.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilSocialBookmarks\_initForm(), ilObjStyleSheetGUI\createObject(), ilObjMediaCastGUI\editCastItemObject(), ilObjMediaCastGUI\initAddCastItemForm(), ilPCIIMTriggerEditorGUI\initAreaEditingForm(), ilImageMapEditorGUI\initAreaEditingForm(), ilObjExerciseGUI\initAssignmentForm(), ilObjSystemFolderGUI\initBasicSettingsForm(), ilRatingCategoryGUI\initCategoryForm(), ilSetupGUI\initClientIniForm(), ilSetupGUI\initClientLoginForm(), ilSetupGUI\initContactDataForm(), ilObjSystemFolderGUI\initContactInformationForm(), ilObjPortfolioGUI\initCopyPageForm(), ilObjectPluginGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilObjectGUI\initCreateForm(), ilObjSAHSLearningModuleGUI\initCreationForm(), ilObjectPluginGUI\initEditForm(), ilPCFileListGUI\initEditForm(), ilObjectGUI\initEditForm(), ilTermListTableGUI\initFilter(), ilPresentationListTableGUI\initFilter(), ilLPObjectStatisticsDailyTableGUI\initFilter(), ilLPObjectStatisticsTableGUI\initFilter(), ilSurveyQuestionblockbrowserTableGUI\initFilter(), ilTestQuestionBrowserTableGUI\initFilter(), ilSurveyQuestionbrowserTableGUI\initFilter(), ilSurveyQuestionsTableGUI\initFilter(), ilAccountCodesTableGUI\initFilter(), ilRegistrationCodesTableGUI\initFilter(), ilLPObjectStatisticsLPTableGUI\initFilter(), ilMediaPoolTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilLPTableBaseGUI\initFilter(), ilEvaluationAllTableGUI\initFilter(), ilObjMediaPoolGUI\initFolderForm(), ilBasicSkillTemplateGUI\initForm(), ilSkillCategoryGUI\initForm(), ilBasicSkillGUI\initForm(), ilPCInteractiveImageGUI\initForm(), ilObjPortfolioGUI\initForm(), ilSkillTreeNodeGUI\initForm(), ilObjForumGUI\initForumCreateForm(), ilObjSystemFolderGUI\initJavaServerForm(), ilBasicSkillGUI\initLevelForm(), ilObjMediaPoolGUI\initMediaPoolPageForm(), ilObjContentObjectGUI\initMenuEntryForm(), ilObjPortfolioGUI\initPageForm(), ilObjStyleSheetGUI\initPropertiesForm(), ilMDEditorGUI\initQuickEditForm(), ilWikiPageGUI\initRenameForm(), ilObjFileBasedLMGUI\initSettingsForm(), ilSettingsTemplateGUI\initSettingsTemplateForm(), ilObjStyleSheetGUI\initTagStyleForm(), ilObjTaxonomyGUI\initTaxNodeForm(), ilObjPaymentSettingsGUI\initVatForm(), ilFileSystemGUI\listFiles(), ilObjGlossaryGUI\listTerms(), ilFileSystemGUI\renameFileForm(), ilPaymentStatisticGUI\searchUser(), ilObjPaymentSettingsGUI\searchUserSPObject(), ilObjPrivacySecurityGUI\showSecurity(), and ilObjContentObjectGUI\showTooltipList().

{
$this->maxlength = $a_maxlength;
}

+ Here is the caller graph for this function:

ilTextInputGUI::setMulti (   $a_multi,
  $a_sortable = false 
)

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

Referenced by ilAttendanceList\initForm(), and ilBlogPostingGUI\initKeywordsForm().

{
$this->multi = (bool)$a_multi;
$this->multi_sortable = (bool)$a_sortable;
}

+ 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 339 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 132 of file class.ilTextInputGUI.php.

Referenced by ilRoleAutoCompleteInputGUI\__construct(), ilAnswerWizardInputGUI\__construct(), ilImageWizardInputGUI\__construct(), ilSingleChoiceWizardInputGUI\__construct(), FormMailCodesGUI\__construct(), ilMatchingWizardInputGUI\__construct(), ilAccountRegistrationGUI\__initForm(), ilTestExpressPageObjectGUI\addQuestion(), ilObjSurveyGUI\createQuestionObject(), ilObjTestGUI\createQuestionObject(), assNumericGUI\editQuestion(), ilObjLearningResourcesSettingsGUI\editSettings(), ilObjStyleSettingsGUI\initAddPageLayoutForm(), ilSetupGUI\initClientLoginForm(), ilObjectCustomUserFieldsGUI\initFieldForm(), ilObjMailGUI\initForm(), ilCalendarRecurrenceGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilPageLayoutGUI\initForm(), ilLDAPSettingsGUI\initForm(), ilObjUserGUI\initForm(), ilObjLinkResourceGUI\initFormLink(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilObjectCopyGUI\initFormSearch(), ilConsultationHoursGUI\initFormSequence(), ilPCTableGUI\initPropertiesForm(), ilMailSearchGUI\initSearchForm(), ilECSSettingsGUI\initSettingsForm(), ilObjTestGUI\propertiesObject(), ilPCPlaceHolderGUI\propertyGUI(), ilMailFormGUI\searchUsers(), 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 235 of file class.ilTextInputGUI.php.

{
$this->submit_form_on_enter = $a_val;
}
ilTextInputGUI::setSuffix (   $a_value)

Set suffix.

Parameters
string$a_valuesuffix

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

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

Set validation regexp.

Parameters
string$a_valueregexp

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

Referenced by ilOpenIdSettingsGUI\initFormProvider().

{
$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, ilTextWizardInputGUI, ilSingleChoiceWizardInputGUI, ilImageWizardInputGUI, ilAnswerWizardInputGUI, ilKVPWizardInputGUI, ilColorPickerInputGUI, ilErrorTextWizardInputGUI, ilMatchingPairWizardInputGUI, ilMultipleChoiceWizardInputGUI, ilEssayKeywordWizardInputGUI, and ilFormulaInputGUI.

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

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

Referenced by assQuestionGUI\addBasicQuestionFormProperties(), ilPaymentCouponGUI\addCoupon(), ilObjPaymentSettingsGUI\addCurrencyObject(), ilUserProfile\addStandardFieldsToForm(), ilObjSystemFolderGUI\benchmarkObject(), ilTestScoringGUI\buildManScoringParticipantForm(), ilCertificateGUI\certificateEditor(), ilObjPaymentSettingsGUI\editCurrencyObject(), ilObjFileAccessSettingsGUI\editDiskQuotaSettings(), SurveyTextQuestionGUI\editQuestion(), SurveyMetricQuestionGUI\editQuestion(), SurveySingleChoiceQuestionGUI\editQuestion(), SurveyMultipleChoiceQuestionGUI\editQuestion(), assJavaAppletGUI\editQuestion(), SurveyMatrixQuestionGUI\editQuestion(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilPDNewsBlockGUI\editSettings(), ilObjPaymentSettingsGUI\editVendorObject(), ilLuceneAdvancedSearchFields\getFormElement(), ilDataCollectionDatatype\getInputField(), ilAdvancedSearchGUI\initAdvancedMetaDataForm(), ilObjSystemFolderGUI\initBasicSettingsForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilObjMDSettingsGUI\initCopyrightEditForm(), ilObjSystemFolderGUI\initCronJobsForm(), ilRemoteObjectBaseGUI\initEditForm(), ilCalendarAppointmentGUI\initForm(), ilAttendanceList\initForm(), ilObjSessionGUI\initForm(), ilBookmarkAdministrationGUI\initFormBookmark(), ilECSMappingSettingsGUI\initFormCSettings(), ilCourseObjectivesGUI\initFormLimits(), ilCalendarCategoryGUI\initFormSearch(), ilCASSettingsGUI\initFormSettings(), ilObjMediaCastSettingsGUI\initFormSettings(), ilObjLinkResourceGUI\initFormSettings(), ilObjCourseGUI\initInfoEditor(), ilObjUserFolderGUI\initNewAccountMailForm(), ilPCTableGUI\initPropertiesForm(), ilObjSurveyGUI\initPropertiesForm(), ilECSSettingsGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilAdvancedMDRecordGUI\parseSearch(), setValueByArray(), ilMailAddressbookGUI\showAddressForm(), ilShopGUI\showGeneralFilter(), ilPurchaseBMFGUI\showPersonalData(), ilPurchaseBaseGUI\showPersonalData(), ilObjPrivacySecurityGUI\showSecurity(), 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 173 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 25 of file class.ilTextInputGUI.php.

Referenced by getDataSource().

ilTextInputGUI::$css_class
protected

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

Referenced by getCssClass().

ilTextInputGUI::$maxlength = 200
protected

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

Referenced by getMaxLength().

ilTextInputGUI::$size = 40
protected

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

Referenced by getSize().

ilTextInputGUI::$style_css
protected

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

Referenced by getInlineStyle().

ilTextInputGUI::$submit_form_on_enter = false
protected

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

Referenced by getSubmitFormOnEnter().

ilTextInputGUI::$validationFailureMessage = ''
protected

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

Referenced by getValidationFailureMessage().

ilTextInputGUI::$validationRegexp
protected

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

Referenced by getValidationRegexp().


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