Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
FormValidatorCaptcha Class Reference
Inheritance diagram for FormValidatorCaptcha:
FormValidator

Public Member Functions

 FormValidatorCaptcha (&$form, $field, $captchaIdField, $message)
 
 isValid ()
 
- Public Member Functions inherited from FormValidator
 FormValidator (&$form, $field, $type, $message, $validator=null)
 
 getField ()
 
 getFieldValue ()
 
getForm ()
 
 getMessage ()
 
 getType ()
 
getValidator ()
 
 isEmptyAndOptional ()
 
 isValid ()
 
 setForm (&$form)
 

Detailed Description

Form validation check captcha values.

Definition at line 16 of file FormValidatorCaptcha.inc.php.

Member Function Documentation

FormValidatorCaptcha::FormValidatorCaptcha ( $form,
  $field,
  $captchaIdField,
  $message 
)

Constructor.

Parameters
$formobject
$fieldstring Name of captcha value submitted by user
$captchaIdFieldstring Name of captcha ID field
$messagestring Key of message to display on mismatch

Definition at line 27 of file FormValidatorCaptcha.inc.php.

FormValidatorCaptcha::isValid ( )
See Also
FormValidator::isValid() Determine whether or not the Form meets this Captcha constraint.
Returns
boolean

Definition at line 41 of file FormValidatorCaptcha.inc.php.

References DAORegistry\getDAO(), FormValidator\getFieldValue(), and FormValidator\getForm().


The documentation for this class was generated from the following file: