Open Monograph Press  1.1
 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 ()
 

Public Attributes

 $_challengeField
 
 $_responseField
 
- Public Attributes inherited from FormValidator
 $_field
 
 $_form
 
 $_message
 
 $_type
 
 $_validator
 

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 41 of file FormValidatorReCaptcha.inc.php.

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

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

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

Member Data Documentation

string FormValidatorReCaptcha::$_challengeField

reCaptcha challenge form field

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

string FormValidatorReCaptcha::$_responseField

reCaptcha response form field

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


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