PHP Class Horde_Form_Type_text, horde

Inheritance: extends Horde_Form_Type
Show file Open project: horde/horde

Public Properties

Property Type Description
$_maxlength
$_regex
$_size

Public Methods

Method Description
about ( ) Return info about field type.
getMaxLength ( )
getSize ( )
init ( string $regex = '', integer $size = 40, integer $maxlength = null ) The initialisation function for the text variable type.
isValid ( &$var, &$vars, $value, &$message )

Method Details

about() public method

Return info about field type.
public about ( )

getMaxLength() public method

public getMaxLength ( )

getSize() public method

public getSize ( )

init() public method

The initialisation function for the text variable type.
public init ( string $regex = '', integer $size = 40, integer $maxlength = null )
$regex string 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.
$size integer The size of the input field.
$maxlength integer The max number of characters.

isValid() public method

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

Property Details

$_maxlength public property

public $_maxlength

$_regex public property

public $_regex

$_size public property

public $_size