Blesta Source Documentation

CaptchaFactory

Captcha Factory

Creates new captcha instances

Table of Contents

Methods

__call() Creates an instance of the provided 3rd party captcha
hCaptcha() Creates an instance of hCaptcha
internalCaptcha() Creates an instance of Internal Captcha
reCaptcha() Creates an instance of Google reCaptcha
Methods

__call()

Creates an instance of the provided 3rd party captcha

public __call(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed

hCaptcha()

Creates an instance of hCaptcha

public hCaptcha([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

An array of options including:

  • site_key The hCaptcha site key
  • secret_key The hCaptcha secret key
  • lang The user's language (e.g. "en" for English)
  • ip_address The user's IP address (optional)

internalCaptcha()

Creates an instance of Internal Captcha

public internalCaptcha([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

An array of options including:

  • lang The user's language (e.g. "en_us" for English)
  • ip_address The user's IP address (optional)

reCaptcha()

Creates an instance of Google reCaptcha

public reCaptcha([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

An array of options including:

  • site_key The reCaptcha site key
  • shared_key The reCaptcha shared key
  • lang The user's language (e.g. "en" for English)
  • ip_address The user's IP address (optional)
Tags
subpackage

core.Util.Captcha.Captchas

copyright

Copyright (c) 2018, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results