CaptchaProvider
in
Interface for providers of captchas.
Table of Contents
- getCaptchaElement() : htmlElement
- Returns the HTML element to render for the captcha.
- getId() : string
- Returns the id of the service
- getLabel() : string
- Returns the label of the service
- isValid() : bool
- Checks if the POST data contains a valid captcha result.
Methods
getCaptchaElement()
Returns the HTML element to render for the captcha.
public
getCaptchaElement(string $siteKey) : htmlElement
Parameters
- $siteKey : string
-
site key
Return values
htmlElement —HTML element
getId()
Returns the id of the service
public
getId() : string
Return values
string —id
getLabel()
Returns the label of the service
public
getLabel() : string
Return values
string —label
isValid()
Checks if the POST data contains a valid captcha result.
public
isValid(string $secretKey, string $siteKey) : bool
Parameters
- $secretKey : string
-
secret key
- $siteKey : string
-
site key
Return values
bool —user solved captcha