Class TextBase
Implements the basic functionality common to text input controls.
-
Nette\Object
-
Nette\ComponentModel\Component
implements
Nette\ComponentModel\IComponent
-
Nette\Forms\Controls\BaseControl
implements
Nette\Forms\IControl
-
Nette\Forms\Controls\TextBase
Methods summary
public
string
|
#
getValue( )
Returns control's value.
Returns
string string
Overrides
|
public
Nette\Forms\Controls\TextBase
|
#
setEmptyValue( string $value )
Sets the special value which is treated as empty string.
Sets the special value which is treated as empty string.
Parameters
Returns
|
public
string
|
#
getEmptyValue( )
Returns the special value which is treated as empty string.
Returns the special value which is treated as empty string.
Returns
string string
|
public
Nette\Forms\Controls\TextBase
|
#
setMaxLength( integer $length )
Sets the maximum number of allowed characters.
Sets the maximum number of allowed characters.
Parameters
Returns
|
public
Nette\Forms\Controls\TextBase
|
#
addFilter( callable $filter )
Appends input string filter callback.
Appends input string filter callback.
Parameters
Returns
|
public
Html|string
|
#
getControl( )
Generates control's HTML element.
Generates control's HTML element.
Returns
Html|string Html|string
Overrides
|
public
Nette\Forms\Controls\TextBase
|
#
addRule( mixed $validator, string $message = NULL, mixed $arg = NULL )
Adds a validation rule.
Parameters
- $validator
- type
- $message
- to display for invalid data
- $arg
- rule arguments
Returns
Overrides
|
Methods inherited from Nette\Forms\Controls\BaseControl
__construct(),
addCondition(),
addConditionOn(),
addError(),
attached(),
cleanErrors(),
exportRules(),
getControlPrototype(),
getError(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getHttpData(),
getLabel(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
hasErrors(),
isDisabled(),
isFilled(),
isOmitted(),
isRequired(),
loadHttpData(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlAttribute(),
setHtmlId(),
setOmitted(),
setOption(),
setRequired(),
setTranslator(),
translate(),
validate()
|
Methods inherited from Nette\ComponentModel\Component
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor(),
validateParent()
|
Properties summary
protected
string
|
$emptyValue
|
|
protected
mixed
|
$rawValue
unfiltered submitted value
unfiltered submitted value
|
|
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control,
$controlPrototype,
$disabled,
$errors,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$omitted,
$required,
$value
|