| 1 | <?php |
||
| 7 | class RecaptchaValidator extends FieldValidator |
||
| 8 | { |
||
| 9 | |||
| 10 | private $recaptchaField; |
||
| 11 | |||
| 12 | const ENDPOINT = 'https://www.google.com/recaptcha/api/siteverify'; |
||
| 13 | |||
| 14 | public function __construct ($errorMsg, Recaptcha $recaptchaField) |
||
| 19 | |||
| 20 | public function isValid ($value) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns a short human-readable slug/string describing the object |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | function describeObject () |
||
| 39 | } |