HTML_QuickForm2_Rule | --HTML_QuickForm2_Rule_Empty
Handles both simple form fields and file uploads, the latter are considered valid iff no file upload was attempted.
The rule doesn't make much sense if used separately, but can be very helpful if chained: $spamCheck->addRule('empty') ->or_($email->createRule('nonempty', 'Supply a valid email if you want to receive our spam') ->and_($email->createRule('email')));
$spamCheck->addRule('empty') ->or_($email->createRule('nonempty', 'Supply a valid email if you want to receive our spam') ->and_($email->createRule('email')));
void getJavascriptCallback( )
void validateOwner( )