Class TextBase
Implements the basic functionality common to text input controls.
- Object
-
Component implements IComponent
-
FormControl implements IFormControl
-
TextBase
public
TextBase
|
#
setValue(
string
$value
)
Sets control's value. Sets control's value. Parameters$value stringReturnsTextBase provides a fluent interface
Implementation of |
public
string
|
#
getValue(
)
Returns control's value. |
public
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 stringReturnsTextBase 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. |
public
TextBase
|
#
addFilter(
callback
$filter
)
Appends input string filter callback. Appends input string filter callback. Parameters$filter callbackReturnsTextBase provides a fluent interface
|
public
|
#
getControl(
)
|
public
|
#
addRule(
$operation,
$message = NULL,
$arg = NULL
)
|
public static
bool
|
#
validateMinLength(
TextBase
$control,
int
$length
)
Min-length validator: has control's value minimal length? Min-length validator: has control's value minimal length? Parameters$control TextBase$length int length |
public static
bool
|
#
validateMaxLength(
TextBase
$control,
int
$length
)
Max-length validator: is control's value length in limit? Max-length validator: is control's value length in limit? Parameters$control TextBase$length int length |
public static
bool
|
#
validateLength(
TextBase
$control,
array
$range
)
Length validator: is control's value length in range? Length validator: is control's value length in range? Parameters$control TextBase$range array min and max length pair |
public static
bool
|
#
validateEmail(
TextBase
$control
)
Email validator: is control's value valid email address? Email validator: is control's value valid email address? Parameters$control TextBase |
public static
bool
|
#
validateUrl(
TextBase
$control
)
URL validator: is control's value valid URL? URL validator: is control's value valid URL? Parameters$control TextBase |
public static
|
#
validateRegexp(
TextBase
$control,
$regexp
)
|
public static
bool
|
#
validatePattern(
TextBase
$control,
string
$pattern
)
Regular expression validator: matches control's value regular expression? Regular expression validator: matches control's value regular expression? Parameters$control TextBase$pattern string |
public static
bool
|
#
validateInteger(
TextBase
$control
)
Integer validator: is a control's value decimal number? Integer validator: is a control's value decimal number? Parameters$control TextBase |
public static
bool
|
#
validateFloat(
TextBase
$control
)
Float validator: is a control's value float number? Float validator: is a control's value float number? Parameters$control TextBase |
public static
bool
|
#
validateRange(
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 TextBase$range array min and max value pair |
public static
string
|
#
filterFloat(
string
$s
)
Float string cleanup. Float string cleanup. Parameters$s string |
Methods Inherited From FormControl
__construct(), attached(), getForm(), getHtmlName(), setHtmlId(), getHtmlId(), setAttribute(), setOption(), getOption(), getOptions(), setTranslator(), getTranslator(), translate(), setValue(), getValue(), isFilled(), setDefaultValue(), loadHttpData(), setDisabled(), isDisabled(), getControl(), getLabel(), getControlPrototype(), getLabelPrototype(), addRule(), addCondition(), addConditionOn(), getRules(), setRequired(), isRequired(), validateEqual(), validateFilled(), validateValid(), addError(), getErrors(), hasErrors(), cleanErrors()
Methods Inherited From Component
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From Component
NAME_SEPARATOR
Properties Inherited From FormControl
$idMask, $caption, $value, $control, $label