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

Public Member Functions

 FormValidatorReCaptcha (&$form, $challengeField, $responseField, $userIp, $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 reCaptcha values.

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

Member Function Documentation

FormValidatorReCaptcha::FormValidatorReCaptcha ( $form,
  $challengeField,
  $responseField,
  $userIp,
  $message 
)

Constructor.

Parameters
$formobject
$userIpstring IP address of user request
$messagestring Key of message to display on mismatch

Definition at line 32 of file FormValidatorReCaptcha.inc.php.

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

Definition at line 48 of file FormValidatorReCaptcha.inc.php.

References FormValidator\getForm(), and Config\getVar().


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