PHP Class Redaxscript\Captcha

Since: 2.0.0
Author: Henry Ruhs
Afficher le fichier Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Свойство Type Description
$_language object instance of the language class
$_mode integer captcha operator mode
$_operatorArray array array of mathematical operators used for the task
$_rangeArray array allowed range for the task
$_solution integer solution to the task
$_task string task to be solved

Méthodes publiques

Méthode Description
__construct ( Language $language ) constructor of the class
getMax ( ) : integer get the maximum range
getMin ( ) : integer get the minimum range
getSolution ( ) : integer get the solution
getTask ( ) : string get the task
init ( integer $mode = null ) init the class

Méthodes protégées

Méthode Description
_create ( ) create a task of two numbers between allowable range
_getOperator ( ) : integer get the mathematical operator used for the task

Method Details

__construct() public méthode

constructor of the class
Since: 2.4.0
public __construct ( Language $language )
$language Language instance of the language class

_create() protected méthode

create a task of two numbers between allowable range
Since: 2.0.0
protected _create ( )

_getOperator() protected méthode

get the mathematical operator used for the task
Since: 2.0.0
protected _getOperator ( ) : integer
Résultat integer

getMax() public méthode

get the maximum range
Since: 2.6.0
public getMax ( ) : integer
Résultat integer

getMin() public méthode

get the minimum range
Since: 2.6.0
public getMin ( ) : integer
Résultat integer

getSolution() public méthode

get the solution
Since: 2.6.0
public getSolution ( ) : integer
Résultat integer

getTask() public méthode

get the task
Since: 2.0.0
public getTask ( ) : string
Résultat string

init() public méthode

init the class
Since: 2.4.0
public init ( integer $mode = null )
$mode integer captcha operator mode

Property Details

$_language protected_oe property

instance of the language class
protected object $_language
Résultat object

$_mode protected_oe property

captcha operator mode
protected int $_mode
Résultat integer

$_operatorArray protected_oe property

array of mathematical operators used for the task
protected array $_operatorArray
Résultat array

$_rangeArray protected_oe property

allowed range for the task
protected array $_rangeArray
Résultat array

$_solution protected_oe property

solution to the task
protected int $_solution
Résultat integer

$_task protected_oe property

task to be solved
protected string $_task
Résultat string