Class TextInput
Single line text input control.
- Object
-
Component implements IComponent
-
FormControl implements IFormControl
-
TextBase
-
TextInput
public
|
#
__construct(
string
$label = NULL,
string
$cols = NULL,
int
$maxLength = NULL
)
Parameters$label string control name$cols string label$maxLength int width of the control |
public
string
|
#
sanitize(
$value
)
Filter: removes unnecessary whitespace and shortens value to control's max length. Filter: removes unnecessary whitespace and shortens value to control's max length. |
public
FormControl
|
#
setType(
string
$type
)
Changes control's type attribute. Changes control's type attribute. Parameters$type stringReturnsFormControl provides a fluent interface
|
public
|
#
setPasswordMode(
$mode = true
)
|
public
Html
|
#
getControl(
)
Generates control's HTML element. Generates control's HTML element. |
Methods Inherited From TextBase
setValue(), getValue(), setEmptyValue(), getEmptyValue(), addFilter(), getControl(), addRule(), validateMinLength(), validateMaxLength(), validateLength(), validateEmail(), validateUrl(), validateRegexp(), validatePattern(), validateInteger(), validateFloat(), validateRange(), filterFloat()
Methods Inherited From FormControl
__construct(), attached(), getForm(), getHtmlName(), setHtmlId(), getHtmlId(), setAttribute(), setOption(), getOption(), getOptions(), setTranslator(), getTranslator(), translate(), setValue(), getValue(), isFilled(), setDefaultValue(), loadHttpData(), setDisabled(), isDisabled(), getControl(), getLabel(), getControlPrototype(), getLabelPrototype(), addRule(), addCondition(), addConditionOn(), getRules(), setRequired(), isRequired(), validateEqual(), validateFilled(), validateValid(), addError(), getErrors(), hasErrors(), cleanErrors()
Methods Inherited From Component
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From Component
NAME_SEPARATOR
Properties Inherited From TextBase
$emptyValue, $filters
Properties Inherited From FormControl
$idMask, $caption, $value, $control, $label