Class NTextInput
Single line text input control.
- NObject
-
NComponent implements IComponent
-
NFormControl implements IFormControl
-
NTextBase
-
NTextInput
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
NFormControl
|
#
setType(
string
$type
)
Changes control's type attribute. Changes control's type attribute. Parameters$type stringReturnsNFormControl provides a fluent interface
|
public
|
#
setPasswordMode(
$mode = true
)
|
public
NHtml
|
#
getControl(
)
Generates control's HTML element. Generates control's HTML element. |
Methods Inherited From NTextBase
setValue(), getValue(), setEmptyValue(), getEmptyValue(), addFilter(), getControl(), addRule(), validateMinLength(), validateMaxLength(), validateLength(), validateEmail(), validateUrl(), validateRegexp(), validatePattern(), validateInteger(), validateFloat(), validateRange(), filterFloat()
Methods Inherited From NFormControl
__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 NComponent
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From NObject
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From NComponent
NAME_SEPARATOR
Properties Inherited From NTextBase
$emptyValue, $filters
Properties Inherited From NFormControl
$idMask, $caption, $value, $control, $label