PHP Class Nette\Forms\Controls\TextBase

Inheritance: extends BaseControl
Afficher le fichier Open project: nette/forms Class Usage Examples

Protected Properties

Свойство Type Description
$emptyValue string
$rawValue unfiltered submitted value

Méthodes publiques

Méthode Description
addFilter ( $filter ) : self Appends input string filter callback.
addRule ( $validator, $message = NULL, $arg = NULL )
getControl ( )
getEmptyValue ( ) : string Returns the special value which is treated as empty string.
getValue ( ) : string Returns control's value.
setEmptyValue ( $value ) : self Sets the special value which is treated as empty string.
setMaxLength ( $length ) : self Sets the maximum number of allowed characters.
setNullable ( $value = TRUE ) : self Sets whether getValue() returns NULL instead of empty string.
setValue ( $value ) : self Sets control's value.
validate ( ) : void Performs the server side validation.

Méthodes protégées

Méthode Description
getRenderedValue ( ) : string | null

Method Details

addFilter() public méthode

Appends input string filter callback.
public addFilter ( $filter ) : self
Résultat self

addRule() public méthode

public addRule ( $validator, $message = NULL, $arg = NULL )

getControl() public méthode

public getControl ( )

getEmptyValue() public méthode

Returns the special value which is treated as empty string.
public getEmptyValue ( ) : string
Résultat string

getRenderedValue() protected méthode

protected getRenderedValue ( ) : string | null
Résultat string | null

getValue() public méthode

Returns control's value.
public getValue ( ) : string
Résultat string

setEmptyValue() public méthode

Sets the special value which is treated as empty string.
public setEmptyValue ( $value ) : self
Résultat self

setMaxLength() public méthode

Sets the maximum number of allowed characters.
public setMaxLength ( $length ) : self
Résultat self

setNullable() public méthode

Sets whether getValue() returns NULL instead of empty string.
public setNullable ( $value = TRUE ) : self
Résultat self

setValue() public méthode

Sets control's value.
public setValue ( $value ) : self
Résultat self

validate() public méthode

Performs the server side validation.
public validate ( ) : void
Résultat void

Property Details

$emptyValue protected_oe property

protected string $emptyValue
Résultat string

$rawValue protected_oe property

unfiltered submitted value
protected $rawValue