incomplete
class incomplete extends base
Properties
protected config | $config | from base | |
protected driver_interface | $db | from base | |
protected language | $language | from base | |
protected request_interface | $request | from base | |
protected user | $user | from base | |
protected int | $attempts | from base | |
protected string | $code | from base | |
protected bool | $solved | from base | |
protected string | $confirm_code | from base | |
protected string | $confirm_id | from base | |
protected confirm_type | $type | from base | |
protected string | $last_error | from base |
Methods
Constructor for incomplete captcha
Display the captcha for the specified type
Validate the captcha with the given request data
Get attempt count for this captcha and user
Return whether captcha was solved
Get error string from captcha
Check if the plugin is available
Check if the plugin has a configuration
Get the name of the plugin, should be language variable
Set the service name of the plugin
Get template filename for demo
Get template filename for captcha
Details
at line 37
__construct(config $config, driver_interface $db, language $language, request_interface $request, template $template, user $user, string $phpbb_root_path, string $phpEx)
Constructor for incomplete captcha
at line 77
void
init(confirm_type $type)
Display the captcha for the specified type
at line 107
bool
validate()
Validate the captcha with the given request data
in
base at line 113
void
reset()
Reset captcha state, e.g. after checking if it's valid
at line 131
int
get_attempt_count()
Get attempt count for this captcha and user
in
base at line 134
protected bool
load_confirm_data()
Look up attempts from confirm table
in
base at line 161
protected void
generate_confirm_data()
Generate confirm data for tracking attempts
in
base at line 181
protected void
increment_attempts()
Increment number of attempts for confirm ID and session
in
base at line 195
array
get_hidden_fields()
Get hidden form fields for this captcha plugin
at line 123
bool
is_solved()
Return whether captcha was solved
at line 115
string
get_error()
Get error string from captcha
in
base at line 222
void
garbage_collect(confirm_type $confirm_type = confirm_type::UNDEFINED)
No description
in
base at line 253
void
acp_page(mixed $id, mixed $module)
Display acp page
at line 46
bool
is_available()
Check if the plugin is available
at line 54
bool
has_config()
Check if the plugin has a configuration
at line 62
string
get_name()
Get the name of the plugin, should be language variable
at line 70
void
set_name(string $name)
Set the service name of the plugin
at line 84
string
get_demo_template()
Get template filename for demo
at line 92
string
get_template()
Get template filename for captcha