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
protected string $service_name

Methods

init($type)

No description

execute_demo()

No description

execute()

No description

get_template()

No description

get_demo_template($id)

No description

get_hidden_fields()

No description

garbage_collect($type)

No description

validate()

No description

generate_code()

The old way to generate code, suitable for GD and non-GD. Resets the internal state.

regenerate_code()

New Question, if desired.

new_attempt()

New Question, if desired.

load_code()

Look up everything we need for painting&checking.

check_code()

No description

get_attempt_count()

No description

reset()

No description

is_solved()

No description

has_config()

API function

string
get_service_name()

No description

set_name(string $name)

Set the name of the plugin

string
get_generator_class()

No description

string
get_login_error_attempts()

Get language variable for error message when CAPTCHA is being shown due to exceeding the maximum number of login attempts

Details

at line 35
init($type)

No description

Parameters

$type

at line 57
execute_demo()

No description

at line 71
execute()

No description

at line 87
get_template()

No description

at line 116
get_demo_template($id)

No description

Parameters

$id

at line 139
get_hidden_fields()

No description

at line 152
garbage_collect($type)

No description

Parameters

$type

at line 182
validate()

No description

at line 223
generate_code()

The old way to generate code, suitable for GD and non-GD. Resets the internal state.

at line 247
regenerate_code()

New Question, if desired.

at line 269
new_attempt()

New Question, if desired.

at line 292
load_code()

Look up everything we need for painting&checking.

at line 316
check_code()

No description

at line 321
get_attempt_count()

No description

at line 326
reset()

No description

at line 339
is_solved()

No description

at line 353
has_config()

API function

at line 361
string get_service_name()

No description

Return Value

string

the name of the service corresponding to the plugin

at line 371
set_name(string $name)

Set the name of the plugin

Parameters

string $name

at line 379
abstract string get_generator_class()

No description

Return Value

string

the name of the class used to generate the captcha

at line 387
string get_login_error_attempts()

Get language variable for error message when CAPTCHA is being shown due to exceeding the maximum number of login attempts

Return Value

string