HTML_QuickForm::addFormRule()

HTML_QuickForm::addFormRule() -- Adds a global validation rule

Synopsis

Описание

This should be used when you want to add a rule involving several fields or if you want to use some completely custom validation for your form. The rule function/method should return TRUE in case of successful validation and array('element name' => 'error') when there were errors.

Параметр

mixed $rule

A valid callback

Throws

Заметка

since 3.1

Эта функция не должна вызываться статически.

Пример

    Поддержать сайт на родительском проекте КГБ