phpBB API Documentation
Class

phpbb\captcha\plugins\captcha_abstract

abstract class captcha_abstract

This class holds the code shared by the two default 3.0.x CAPTCHAs.

Properties

$confirm_id
$confirm_code
$code
$seed
$attempts
$type
$solved
$captcha_vars

Methods

init($type)

execute_demo()

execute()

get_template()

get_demo_template($id)

get_hidden_fields()

garbage_collect($type)

uninstall()

install()

validate()

generate_code()

The old way to generate code, suitable for GD and non-GD.

regenerate_code()

New Question, if desired.

new_attempt()

New Question, if desired.

load_code()

Look up everything we need for painting&checking.

check_code()

get_attempt_count()

reset()

is_solved()

has_config()

API function

string get_service_name()

set_name(string $name)

Set the name of the plugin

Details

at line 35
public init($type)

Parameters

$type

at line 57
public execute_demo()

at line 71
public execute()

at line 87
public get_template()

at line 116
public get_demo_template($id)

Parameters

$id

at line 139
public get_hidden_fields()

at line 152
public garbage_collect($type)

Parameters

$type

at line 182
public uninstall()

at line 187
public install()

at line 192
public validate()

at line 233
public generate_code()

The old way to generate code, suitable for GD and non-GD.

Resets the internal state.

at line 257
public regenerate_code()

New Question, if desired.

at line 279
public new_attempt()

New Question, if desired.

at line 302
public load_code()

Look up everything we need for painting&checking.

at line 326
public check_code()

at line 331
public get_attempt_count()

at line 336
public reset()

at line 349
public is_solved()

at line 363
public has_config()

API function

at line 371
public string get_service_name()

Return Value

string the name of the service corresponding to the plugin

at line 381
public set_name(string $name)

Set the name of the plugin

Parameters

string $name