PHP Class Phalcon\Validation\Validator\ReCaptcha

Verifies a value to a reCAPTCHA challenge use Phalcon\Validation\Validator; $validator->add('g-recaptcha-response', new Validator([ 'message' => 'The captcha is not valid', 'secret' => 'your_site_key' ]));
Inheritance: extends Phalcon\Validation\Validator
ファイルを表示 Open project: phalcon/incubator

Protected Properties

Property Type Description
$messages array Response error code reference

Public Methods

Method Description
validate ( Phalcon\Validation $validation, string $attribute ) : boolean

Method Details

validate() public method

public validate ( Phalcon\Validation $validation, string $attribute ) : boolean
$validation Phalcon\Validation
$attribute string
return boolean

Property Details

$messages protected_oe property

Response error code reference
protected array $messages
return array