plugin_interface
interface plugin_interface
Methods
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 23
bool
is_available()
Check if the plugin is available
at line 30
bool
has_config()
Check if the plugin has a configuration
at line 37
string
get_name()
Get the name of the plugin, should be language variable
at line 44
void
set_name(string $name)
Set the service name of the plugin
at line 52
void
init(confirm_type $type)
Display the captcha for the specified type
at line 59
array
get_hidden_fields()
Get hidden form fields for this captcha plugin
at line 66
bool
validate()
Validate the captcha with the given request data
at line 73
string
get_error()
Get error string from captcha
at line 80
bool
is_solved()
Return whether captcha was solved
at line 87
void
reset()
Reset captcha state, e.g. after checking if it's valid
at line 94
int
get_attempt_count()
Get attempt count for this captcha and user
at line 101
string
get_template()
Get template filename for captcha
at line 108
string
get_demo_template()
Get template filename for demo
at line 116
void
garbage_collect(confirm_type $confirm_type = confirm_type::UNDEFINED)
Garbage collect captcha plugin
at line 125
void
acp_page(mixed $id, mixed $module)
Display acp page