PHP Class RecaptchaBehavior

Inheritance: extends ModelBehavior
Afficher le fichier Open project: cakedc/recaptcha

Méthodes publiques

Свойство Type Description
$defaults array Default settings
$settings array Settings array

Méthodes publiques

Méthode Description
beforeValidate ( Model $Model, array $options = [] ) : boolean Validates the captcha
setup ( Model $Model, array $settings = [] ) : void Setup
validateCaptcha ( Model $Model ) : boolean Validates the captcha responses status set by the component to the model

Method Details

beforeValidate() public méthode

Validates the captcha
public beforeValidate ( Model $Model, array $options = [] ) : boolean
$Model Model Model using this behavior
$options array Options passed from Model::save()
Résultat boolean

setup() public méthode

Setup
public setup ( Model $Model, array $settings = [] ) : void
$Model Model Model using this behavior
$settings array Configuration settings for $model
Résultat void

validateCaptcha() public méthode

Validates the captcha responses status set by the component to the model
See also: RecaptchaComponent::initialize()
public validateCaptcha ( Model $Model ) : boolean
$Model Model Model using this behavior
Résultat boolean

Property Details

$defaults public_oe property

Default settings
public array $defaults
Résultat array

$settings public_oe property

Settings array
public array $settings
Résultat array