Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • Button
  • Checkbox
  • ConventionalRenderer
  • FileUpload
  • Form
  • FormContainer
  • FormControl
  • FormGroup
  • HiddenField
  • ImageButton
  • InstantClientScript
  • MultiSelectBox
  • RadioList
  • Rule
  • Rules
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput

Interfaces

  • IFormControl
  • IFormRenderer
  • INamingContainer
  • ISubmitterControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Class TextBase

Implements the basic functionality common to text input controls.

Nette\Object
Extended by Nette\Component implements Nette\IComponent
Extended by Nette\Forms\FormControl implements Nette\Forms\IFormControl
Extended by Nette\Forms\TextBase

Direct known subclasses

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

Sets control's value.

Sets control's value.

Parameters

$value
string

Returns

Nette\Forms\TextBase
provides a fluent interface

Implementation of

Nette\Forms\IFormControl::setValue
public string
# getValue( )

Returns control's value.

Returns control's value.

Returns

string

Implementation of

Nette\Forms\IFormControl::getValue
public Nette\Forms\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
string

Returns

Nette\Forms\TextBase
provides a fluent interface
final 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
public Nette\Forms\TextBase
# addFilter( callback $filter )

Appends input string filter callback.

Appends input string filter callback.

Parameters

$filter
callback

Returns

Nette\Forms\TextBase
provides a fluent interface
public
# notifyRule( Nette\Forms\Rule $rule )

New rule or condition notification callback.

New rule or condition notification callback.

Parameters

$rule
Nette\Forms\Rule
public static boolean
# validateMinLength( Nette\Forms\TextBase $control, integer $length )

Min-length validator: has control's value minimal length?

Min-length validator: has control's value minimal length?

Parameters

$control
Nette\Forms\TextBase
$length
integer
length

Returns

boolean
public static boolean
# validateMaxLength( Nette\Forms\TextBase $control, integer $length )

Max-length validator: is control's value length in limit?

Max-length validator: is control's value length in limit?

Parameters

$control
Nette\Forms\TextBase
$length
integer
length

Returns

boolean
public static boolean
# validateLength( Nette\Forms\TextBase $control, array $range )

Length validator: is control's value length in range?

Length validator: is control's value length in range?

Parameters

$control
Nette\Forms\TextBase
$range
array
min and max length pair

Returns

boolean
public static boolean
# validateEmail( Nette\Forms\TextBase $control )

Email validator: is control's value valid email address?

Email validator: is control's value valid email address?

Parameters

$control
Nette\Forms\TextBase

Returns

boolean
public static boolean
# validateUrl( Nette\Forms\TextBase $control )

URL validator: is control's value valid URL?

URL validator: is control's value valid URL?

Parameters

$control
Nette\Forms\TextBase

Returns

boolean
public static boolean
# validateRegexp( Nette\Forms\TextBase $control, string $regexp )

Regular expression validator: matches control's value regular expression?

Regular expression validator: matches control's value regular expression?

Parameters

$control
Nette\Forms\TextBase
$regexp
string

Returns

boolean
public static boolean
# validateInteger( Nette\Forms\TextBase $control )

Integer validator: is a control's value decimal number?

Integer validator: is a control's value decimal number?

Parameters

$control
Nette\Forms\TextBase

Returns

boolean
public static boolean
# validateFloat( Nette\Forms\TextBase $control )

Float validator: is a control's value float number?

Float validator: is a control's value float number?

Parameters

$control
Nette\Forms\TextBase

Returns

boolean
public static boolean
# validateRange( Nette\Forms\TextBase $control, array $range )

Rangle validator: is a control's value number in specified range?

Rangle validator: is a control's value number in specified range?

Parameters

$control
Nette\Forms\TextBase
$range
array
min and max value pair

Returns

boolean
public static string
# filterFloat( string $s )

Float string cleanup.

Float string cleanup.

Parameters

$s
string

Returns

string
Methods inherited from Nette\Forms\FormControl
__construct(), addCondition(), addConditionOn(), addError(), addRule(), attached(), cleanErrors(), getControl(), getControlPrototype(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getLabel(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), hasErrors(), isDisabled(), loadHttpData(), setDefaultValue(), setDisabled(), setHtmlId(), setOption(), setTranslator(), translate(), validateEqual(), validateFilled(), validateValid()
Methods inherited from Nette\Component
__clone(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants inherited from Nette\IComponent
NAME_SEPARATOR
Properties summary
protected string $emptyValue ''
#
protected array $filters array()
#
Properties inherited from Nette\Forms\FormControl
$caption, $control, $idMask, $label, $value
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0