프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$Controller | string | Name | |
$actions | array | Actions that should automatically checked for a recaptcha input | |
$apiUrl | string | Recaptcha API Url | |
$error | string | Error coming back from Recaptcha | |
$privateKey | string | Private API Key | |
$settings | array | Settings |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_defaults | array | Default Options |
메소드 | 설명 | |
---|---|---|
__construct ( ComponentCollection $collection, array $settings = [] ) : RecaptchaComponent | Constructor | |
initialize ( Controller $controller, array $settings = [] ) : void | Callback | |
startup ( Controller $controller ) : void | Callback | |
verify ( ) : boolean | Verifies the recaptcha input |
메소드 | 설명 | |
---|---|---|
_getApiResponse ( ) : HttpSocketResponse | Queries the Recaptcha API and and returns the raw response |
public __construct ( ComponentCollection $collection, array $settings = [] ) : RecaptchaComponent | ||
$collection | ComponentCollection | A ComponentCollection this component can use to lazy load its components |
$settings | array | Array of configuration settings |
리턴 | RecaptchaComponent |
protected _getApiResponse ( ) : HttpSocketResponse | ||
리턴 | HttpSocketResponse |
public initialize ( Controller $controller, array $settings = [] ) : void | ||
$controller | Controller | Controller with components to initialize |
$settings | array | Array of configuration settings |
리턴 | void |
public array $actions | ||
리턴 | array |