Class TextInput
Single line text input control.
-
Object
-
Component
implements
IComponent
-
FormControl
implements
IFormControl
-
TextBase
-
TextInput
Methods summary
public
|
#
__construct( string $label = NULL, integer $cols = NULL, integer $maxLength = NULL )
Parameters
- $label
string label
- $cols
integer width of the control
- $maxLength
integer maximum number of characters the user may enter
Overrides
|
public
TextInput
|
#
setType( string $type )
Changes control's type attribute.
Changes control's type attribute.
Parameters
Returns
|
public
|
|
public
Html
|
#
getControl( )
Generates control's HTML element.
Generates control's HTML element.
Returns
Overrides
|
Methods inherited from TextBase
addFilter(),
addRule(),
getEmptyValue(),
getValue(),
sanitize(),
setEmptyValue(),
setValue(),
validateEmail(),
validateLength(),
validateRange(),
validateRegexp(),
validateUrl()
|
Methods inherited from FormControl
addCondition(),
addConditionOn(),
addError(),
attached(),
cleanErrors(),
exportRules(),
getControlPrototype(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getLabel(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
hasErrors(),
isDisabled(),
isFilled(),
isRequired(),
loadHttpData(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOption(),
setRequired(),
setTranslator(),
translate()
|
Methods inherited from Component
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor(),
validateParent()
|
Magic properties summary
public write-only
|
$type
|
|
Magic properties inherited from FormControl
$control,
$controlPrototype,
$defaultValue,
$disabled,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$options,
$required,
$rules,
$translator,
$value
|