Property | Type | Description | |
---|---|---|---|
$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 |
Property | Type | Description | |
---|---|---|---|
$_defaults | array | Default Options |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
_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 |
return | RecaptchaComponent |
protected _getApiResponse ( ) : HttpSocketResponse | ||
return | HttpSocketResponse |
public initialize ( Controller $controller, array $settings = [] ) : void | ||
$controller | Controller | Controller with components to initialize |
$settings | array | Array of configuration settings |
return | void |
public array $actions | ||
return | array |