base
abstract class base implements plugin_interface
Properties
protected config | $config | ||
protected driver_interface | $db | ||
protected language | $language | ||
protected request_interface | $request | ||
protected user | $user | ||
protected int | $attempts | ||
protected string | $code | ||
protected bool | $solved | ||
protected string | $confirm_code | ||
protected string | $confirm_id | ||
protected confirm_type | $type | ||
protected string | $last_error |
Methods
Constructor for abstract captcha base class
Display the captcha for the specified type
Validate the captcha with the given request data
Reset captcha state, e.g. after checking if it's valid
Get attempt count for this captcha and user
Look up attempts from confirm table
Generate confirm data for tracking attempts
Increment number of attempts for confirm ID and session
Get hidden form fields for this captcha plugin
Return whether captcha was solved
Get error string from captcha
No description
Display acp page
Details
at line 69
__construct(config $config, driver_interface $db, language $language, request_interface $request, user $user)
Constructor for abstract captcha base class
at line 81
void
init(confirm_type $type)
Display the captcha for the specified type
at line 97
bool
validate()
Validate the captcha with the given request data
at line 113
void
reset()
Reset captcha state, e.g. after checking if it's valid
at line 126
int
get_attempt_count()
Get attempt count for this captcha and user
at line 134
protected bool
load_confirm_data()
Look up attempts from confirm table
at line 161
protected void
generate_confirm_data()
Generate confirm data for tracking attempts
at line 181
protected void
increment_attempts()
Increment number of attempts for confirm ID and session
at line 195
array
get_hidden_fields()
Get hidden form fields for this captcha plugin
at line 206
bool
is_solved()
Return whether captcha was solved
at line 214
string
get_error()
Get error string from captcha
at line 222
void
garbage_collect(confirm_type $confirm_type = confirm_type::UNDEFINED)
No description
at line 253
void
acp_page(mixed $id, mixed $module)
Display acp page