Documentation

Captcha
in package

Means to generate and process CAPTCHAs of various implementations

Table of Contents

Properties

$class  : mixed

Methods

check()  : bool
Checks the captcha field against the submitted text
field()  : void
Shows a captcha field
init()  : mixed
Loads the default captcha class from config
useClass()  : mixed
Sets which library to use for CAPTCHA implementation

Properties

$class

protected static mixed $class

Methods

check()

Checks the captcha field against the submitted text

public static check() : bool
Return values
bool

field()

Shows a captcha field

public static field() : void
Return values
void —

Calls echo directly

init()

Loads the default captcha class from config

public static init() : mixed

useClass()

Sets which library to use for CAPTCHA implementation

public static useClass(string $class_name) : mixed
Parameters
$class_name : string

e.g. DefaultCaptcha or Recaptcha

On this page

Search results