Property | 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 |
Method | Description | |
---|---|---|
__construct ( |
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 |
Method | Description | |
---|---|---|
_create ( ) | create a task of two numbers between allowable range | |
_getOperator ( ) : integer | get the mathematical operator used for the task |
public __construct ( |
||
$language | instance of the language class |
protected _create ( ) |
protected _getOperator ( ) : integer | ||
return | integer |
protected object $_language | ||
return | object |
protected array $_operatorArray | ||
return | array |
protected array $_rangeArray | ||
return | array |