EasyBlogCaptchaAdapterRecaptcha
extends EasyBlog
in package
Table of Contents
Properties
- $app : mixed
- $config : mixed
- $db : mixed
- $doc : mixed
- $input : mixed
- $jconfig : mixed
- $lang : mixed
- $my : mixed
- $string : mixed
- $_secret : mixed
- $_signupUrl : mixed
- $_siteVerifyUrl : mixed
- $_version : mixed
- $options : mixed
Methods
- __construct() : mixed
- checkAnswer() : mixed
- Alias for verifyResponse
- getError() : mixed
- getErrors() : mixed
- getHTML() : mixed
- Displays the recaptcha html code
- hasError() : mixed
- hasErrors() : mixed
- isMobile() : mixed
- Determines if this is a mobile layout
- isTablet() : mixed
- Determines if this is a tablet layout
- loadLanguage() : mixed
- Helper method to load language
- setError() : mixed
- verifyResponse() : EasyBlogRecaptchaResponse
- Calls the reCAPTCHA siteverify API to verify whether the user passes CAPTCHA test.
- _encodeQS() : string
- Encodes the given data into a query string format.
- _submitHTTPGet() : array<string|int, mixed>
- Submits an HTTP GET to a reCAPTCHA server.
Properties
$app
public
mixed
$app
= \null
$config
public
mixed
$config
= \null
$db
public
mixed
$db
= \null
$doc
public
mixed
$doc
= \null
$input
public
mixed
$input
= \null
$jconfig
public
mixed
$jconfig
= \null
$lang
public
mixed
$lang
= \null
$my
public
mixed
$my
= \null
$string
public
mixed
$string
= \null
$_secret
private
mixed
$_secret
$_signupUrl
private
static mixed
$_signupUrl
= "https://www.google.com/recaptcha/admin"
$_siteVerifyUrl
private
static mixed
$_siteVerifyUrl
= "https://www.google.com/recaptcha/api/siteverify?"
$_version
private
static mixed
$_version
= "php_1.0"
$options
private
mixed
$options
= array()
Methods
__construct()
public
__construct([mixed $options = array() ]) : mixed
Parameters
- $options : mixed = array()
checkAnswer()
Alias for verifyResponse
public
checkAnswer(mixed $remoteIp, mixed $response) : mixed
Parameters
- $remoteIp : mixed
- $response : mixed
Tags
getError()
public
getError() : mixed
getErrors()
public
getErrors() : mixed
getHTML()
Displays the recaptcha html code
public
getHTML() : mixed
Tags
hasError()
public
hasError() : mixed
hasErrors()
public
hasErrors() : mixed
isMobile()
Determines if this is a mobile layout
public
isMobile() : mixed
Tags
isTablet()
Determines if this is a tablet layout
public
isTablet() : mixed
Tags
loadLanguage()
Helper method to load language
public
loadLanguage([mixed $admin = false ]) : mixed
Parameters
- $admin : mixed = false
Tags
setError()
public
setError(mixed $msg) : mixed
Parameters
- $msg : mixed
verifyResponse()
Calls the reCAPTCHA siteverify API to verify whether the user passes CAPTCHA test.
public
verifyResponse(string $remoteIp, string $response) : EasyBlogRecaptchaResponse
Parameters
- $remoteIp : string
-
IP address of end user.
- $response : string
-
response string from recaptcha verification.
Return values
EasyBlogRecaptchaResponse_encodeQS()
Encodes the given data into a query string format.
private
_encodeQS(array<string|int, mixed> $data) : string
Parameters
- $data : array<string|int, mixed>
-
array of string elements to be encoded.
Return values
string —- encoded request.
_submitHTTPGet()
Submits an HTTP GET to a reCAPTCHA server.
private
_submitHTTPGet(string $path, array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $path : string
-
url path to recaptcha server.
- $data : array<string|int, mixed>
-
array of parameters to be sent.
Return values
array<string|int, mixed> —response