Abstract class for CAPTCHA method
Currently, there are two types of CAPTCHA forms, text and image The default mode is "text", it can be changed in the priority: 1 If mode is set through XoopsFormCaptcha::setConfig("mode", $mode), take it 2 Elseif mode is set though captcha/config.php, take it 3 Else, take "text"
Methods | ||
---|---|---|
public
|
__construct(mixed $handler = null)
XoopsCaptchaMethod::__construct()
|
# |
public
|
isActive(): bool
XoopsCaptchaMethod::isActive()
XoopsCaptchaMethod::isActive() Overriden by |
# |
public
|
loadConfig(string $name = ''): void
XoopsCaptchaMethod::loadConfig()
XoopsCaptchaMethod::loadConfig() |
# |
public
|
getCode(): string
XoopsCaptchaMethod::getCode()
XoopsCaptchaMethod::getCode() |
# |
public
|
render(): void
XoopsCaptchaMethod::render()
XoopsCaptchaMethod::render() Overriden by |
# |
public
|
renderValidationJS(): string
|
# |
public
|
verify(mixed $sessionName = null): bool
XoopsCaptchaMethod::verify()
|
# |
Properties | |||
---|---|---|---|
public
|
|
$handler
|
# |
public
|
|
$config
|
# |
public
|
|
$code
|
# |