\Horde_Form_Type_text

A Text Box form type

Summary

Methods
Properties
Constants
getProperty()
__get()
setProperty()
__set()
init()
onSubmit()
isValid()
getTypeName()
getValues()
getInfo()
getSize()
getMaxLength()
about()
$_regex
$_size
$_maxlength
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_regex

$_regex : 

Type

$_size

$_size : 

Type

$_maxlength

$_maxlength : 

Type

Methods

getProperty()

getProperty(  $property) 

Parameters

$property

__get()

__get(  $property) 

Parameters

$property

setProperty()

setProperty(  $property,   $value) 

Parameters

$property
$value

__set()

__set(  $property,   $value) 

Parameters

$property
$value

init()

init(string  $regex = '', integer  $size = 40, integer  $maxlength = null) 

The initialisation function for the text variable type.

Parameters

string $regex

Any valid PHP PCRE pattern syntax that needs to be matched for the field to be considered valid. If left empty validity will be checked only for required fields whether they are empty or not. If using this regex test it is advisable to enter a description for this field to warn the user what is expected, as the generated error message is quite generic and will not give any indication where the regex failed.

integer $size

The size of the input field.

integer $maxlength

The max number of characters.

onSubmit()

onSubmit() 

isValid()

isValid(  $var,   $vars,   $value,   $message) 

Parameters

$var
$vars
$value
$message

getTypeName()

getTypeName() 

getValues()

getValues() 

getInfo()

getInfo(  $vars,   $var,   $info) 

Parameters

$vars
$var
$info

getSize()

getSize() 

getMaxLength()

getMaxLength() 

about()

about() 

Return info about field type.