API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsCaptchaMethod Class Reference
Inheritance diagram for XoopsCaptchaMethod:

Public Member Functions

 __construct ($handler=null)
 
 isActive ()
 
 loadConfig ($name='')
 
 getCode ()
 
 render ()
 
 renderValidationJS ()
 
 verify ($sessionName=null)
 

Data Fields

 $handler
 
 $config
 
 $code
 

Detailed Description

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"

Constructor & Destructor Documentation

◆ __construct()

__construct (   $handler = null)

XoopsCaptchaMethod::__construct()

Parameters
mixed$handler

Reimplemented in XoopsCaptchaText.

Member Function Documentation

◆ getCode()

getCode ( )

◆ isActive()

isActive ( )

◆ loadConfig()

loadConfig (   $name = '')

XoopsCaptchaMethod::loadConfig()

Parameters
string$name
Returns
void

◆ render()

◆ renderValidationJS()

renderValidationJS ( )
Returns
string

◆ verify()

verify (   $sessionName = null)

XoopsCaptchaMethod::verify()

Parameters
mixed$sessionName
Returns
bool

Field Documentation

◆ $code

$code

◆ $config

$config

◆ $handler

$handler

The documentation for this class was generated from the following file: