![]() |
Framework
3.9
|
RequiredBoolean Validator. More...
Public Member Functions | |
RequiredBooleanValidator ($field, $title, $msg="") | |
writeClient () | |
![]() | |
RequiredValidator ($field, $title, $empty="", $checkDisplayNone=true) | |
validate () | |
![]() | |
AbstractValidator ($field, $title) | |
Public Attributes | |
$msg | |
![]() | |
$empty = "" | |
$checkDisplayNone = true | |
![]() | |
$field | |
$title | |
RequiredBoolean Validator.
Verifies single checkbox (Boolean renderer) is checked. While it would seem unnecessary to have a checkbox that must be checked, it is useful for "agree to the terms" fields.
Add this validator the the script using: $form->validator->add(new RequiredBooleanValidator($field, $label, $empty));
Definition at line 1244 of file validation.inc.
RequiredBooleanValidator::RequiredBooleanValidator | ( | $field, | |
$title, | |||
$msg = "" |
|||
) |
Definition at line 1248 of file validation.inc.
RequiredBooleanValidator::writeClient | ( | ) |
Reimplemented from RequiredValidator.
Definition at line 1254 of file validation.inc.
RequiredBooleanValidator::$msg |
Definition at line 1246 of file validation.inc.