PHP Класс Horde_Form_Type_text, horde

Наследование: extends Horde_Form_Type
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$_maxlength
$_regex
$_size

Открытые методы

Метод Описание
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 )

Описание методов

about() публичный Метод

Return info about field type.
public about ( )

getMaxLength() публичный Метод

public getMaxLength ( )

getSize() публичный Метод

public getSize ( )

init() публичный Метод

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 isValid ( &$var, &$vars, $value, &$message )

Описание свойств

$_maxlength публичное свойство

public $_maxlength

$_regex публичное свойство

public $_regex

$_size публичное свойство

public $_size