Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • BaseControl
  • Button
  • Checkbox
  • CheckboxList
  • ChoiceControl
  • CsrfProtection
  • HiddenField
  • ImageButton
  • MultiChoiceControl
  • MultiSelectBox
  • RadioList
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput
  • UploadControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class TextBase

Implements the basic functionality common to text input controls.

Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent uses Nette\SmartObject
Extended by Nette\Forms\Controls\BaseControl implements Nette\Forms\IControl
Extended by Nette\Forms\Controls\TextBase

Direct known subclasses

Nette\Forms\Controls\TextArea, Nette\Forms\Controls\TextInput
Abstract
Namespace: Nette\Forms\Controls
Located at Forms/Controls/TextBase.php
Methods summary
public Nette\Forms\Controls\TextBase
# setValue( mixed $value )

Sets control's value.

Sets control's value.

Parameters

$value

Returns

Nette\Forms\Controls\TextBase
static

Internal

Overrides

Nette\Forms\Controls\BaseControl::setValue()
public mixed
# getValue( )

Returns control's value.

Returns control's value.

Returns

mixed
mixed

Overrides

Nette\Forms\Controls\BaseControl::getValue()
public Nette\Forms\Controls\TextBase
# setNullable( boolean $value = true )

Sets whether getValue() returns null instead of empty string.

Sets whether getValue() returns null instead of empty string.

Parameters

$value

Returns

Nette\Forms\Controls\TextBase
static
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

$value

Returns

Nette\Forms\Controls\TextBase
static
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

$length

Returns

Nette\Forms\Controls\TextBase
static
public Nette\Forms\Controls\TextBase
# addFilter( callable $filter )

Appends input string filter callback.

Appends input string filter callback.

Parameters

$filter

Returns

Nette\Forms\Controls\TextBase
static
public Html|string
# getControl( )

Generates control's HTML element.

Generates control's HTML element.

Returns

Html|string
Html|string

Overrides

Nette\Forms\Controls\BaseControl::getControl()
protected string|null
# getRenderedValue( )

Returns

string|null
string|null
public Nette\Forms\Controls\TextBase
# addRule( mixed $validator, string|object $errorMessage = null, mixed $arg = null )

Parameters

$validator
$errorMessage
$arg

Returns

Nette\Forms\Controls\TextBase
static

Overrides

Nette\Forms\Controls\BaseControl::addRule()
Methods inherited from Nette\Forms\Controls\BaseControl
__call(), __construct(), addCondition(), addConditionOn(), addError(), attached(), cleanErrors(), enableAutoOptionalMode(), extensionMethod(), getControlPart(), getControlPrototype(), getError(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getHttpData(), getLabel(), getLabelPart(), 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(), setParent(), unmonitor(), validateParent()
Methods used from Nette\SmartObject
__callStatic(), __get(), __isset(), __set(), __unset(), getReflection()
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties summary
protected string $emptyValue
#''
protected mixed $rawValue

unfiltered submitted value

unfiltered submitted value

#''
Properties inherited from Nette\Forms\Controls\BaseControl
$caption, $control, $disabled, $idMask, $label, $value
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control, $controlPrototype, $disabled, $error, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $omitted, $options, $required, $value
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0