Documentation

hCaptcha implements CaptchaInterface

hCaptcha

Tags
copyright

CLOUDREXX CMS - CLOUDREXX AG

author

Thomas Wirz thomas.wirz@cloudrexx.com

subpackage

coremodule_captcha

Table of Contents

Interfaces

CaptchaInterface
Cloudrexx captcha interface

Properties

$secret_key  : string
$securityCheck  : bool
Stores status if CAPTCHA has been successfully validated or not
$site_key  : string

Methods

__construct()  : mixed
check()  : bool
Check the captcha code
disable()  : mixed
Disable the captcha check
getCode()  : string
Get captcha code
getJSValidationFn()  : string
Get captcha validation code
verify()  : bool

Properties

$securityCheck

Stores status if CAPTCHA has been successfully validated or not

protected bool $securityCheck

Methods

check()

Check the captcha code

public check() : bool
Return values
bool

getCode()

Get captcha code

public getCode([int $tabIndex = null ]) : string
Parameters
$tabIndex : int = null
Return values
string

getJSValidationFn()

Get captcha validation code

public getJSValidationFn() : string
Return values
string

Returns JS code

verify()

protected verify(string $response) : bool
Parameters
$response : string

The hCaptcha response acquired by the user.

Return values
bool

        
On this page

Search results