PHP 클래스 RecaptchaBehavior

상속: extends ModelBehavior
파일 보기 프로젝트 열기: cakedc/recaptcha

공개 프로퍼티들

프로퍼티 타입 설명
$defaults array Default settings
$settings array Settings array

공개 메소드들

메소드 설명
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

메소드 상세

beforeValidate() 공개 메소드

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

setup() 공개 메소드

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

validateCaptcha() 공개 메소드

Validates the captcha responses status set by the component to the model
또한 보기: RecaptchaComponent::initialize()
public validateCaptcha ( Model $Model ) : boolean
$Model Model Model using this behavior
리턴 boolean

프로퍼티 상세

$defaults 공개적으로 프로퍼티

Default settings
public array $defaults
리턴 array

$settings 공개적으로 프로퍼티

Settings array
public array $settings
리턴 array