legacy_wrapper
class legacy_wrapper implements plugin_interface
Methods
Constructor for legacy CAPTCHA wrapper
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
Display the captcha for the specified type
Get hidden form fields for this captcha plugin
Validate the captcha with the given request data
Get error string from captcha
Return whether captcha was solved
Reset captcha state, e.g. after checking if it's valid
Get attempt count for this captcha and user
Get template filename for captcha
Get template filename for demo
Garbage collect captcha plugin
Display acp page
Details
at line 29
__construct(object $legacy_captcha)
Constructor for legacy CAPTCHA wrapper
at line 37
bool
is_available()
Check if the plugin is available
at line 50
bool
has_config()
Check if the plugin has a configuration
at line 63
string
get_name()
Get the name of the plugin, should be language variable
at line 76
void
set_name(string $name)
Set the service name of the plugin
at line 87
void
init(confirm_type $type)
Display the captcha for the specified type
at line 98
array
get_hidden_fields()
Get hidden form fields for this captcha plugin
at line 111
bool
validate()
Validate the captcha with the given request data
at line 131
string
get_error()
Get error string from captcha
at line 139
bool
is_solved()
Return whether captcha was solved
at line 152
void
reset()
Reset captcha state, e.g. after checking if it's valid
at line 163
int
get_attempt_count()
Get attempt count for this captcha and user
at line 177
string
get_template()
Get template filename for captcha
at line 190
string
get_demo_template()
Get template filename for demo
at line 203
void
garbage_collect(confirm_type $confirm_type = confirm_type::UNDEFINED)
Garbage collect captcha plugin
at line 214
void
acp_page(mixed $id, mixed $module)
Display acp page