Captcha

  • Namespace: Redaxscript
  • Description: parent class to provide a mathematical task
  • Package: Redaxscript
  • Category: Captcha
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
$_language\Redaxscript\Languageprotectedinstance of the language class
$_modeintegerprotectedcaptcha operator mode
$_taskstringprotectedtask to be solved
$_solutionintegerprotectedsolution to the task
$_rangeArrayarrayprotectedallowed range for the task
$_operatorArrayarrayprotectedarray of mathematical operators used for the task
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
__constructpublicconstructor of the class
initpublicinit the class
getTaskpublicget the task
getSolutionpublicget the solution
getMinpublicget the minimum range
getMaxpublicget the maximum range
_getOperatorprotectedget the mathematical operator used for the task
_createprotectedcreate a task of two numbers between allowable range
MethodVisibilityDescription