Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:responsivecaptcha

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:core:responsivecaptcha [2026/09/26 09:09] – admin adminscriptlog:lib:core:responsivecaptcha [2026/09/26 09:34] (current) – admin admin
Line 15: Line 15:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@author'' | Theodore Brown | +| ''@author'' | Theodore Brown | 
-  | ''@version'' | 1.0.1 |+| ''@version'' | 1.0.1 |
  
 ======= Inheritance ======= ======= Inheritance =======
Line 29: Line 29:
 ======= Properties (1) ======= ======= Properties (1) =======
  
-  ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ +^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
-  | ''private'' | ''(untyped)'' | ''$sessionVariableName'' | ''"ResponsiveCaptchaAnswer";'' | 19 |+| ''private'' | ''(untyped)'' | ''$sessionVariableName'' | ''"ResponsiveCaptchaAnswer"'' | 19 |
  
 ======= Methods (12) ======= ======= Methods (12) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''__construct()'' | (undocumented) | 21 | +| public | ''__construct()'' | (undocumented) | 21 | 
-  | public | ''checkAnswer()'' | Checks whether a user's response matches the stored answer | 43 | +| public | ''checkAnswer()'' | Checks whether a user's response matches the stored answer | 43 | 
-  | public | ''getNewQuestion()'' | Generate a random question string and store the answer in the session | 77 | +| public | ''getNewQuestion()'' | Generate a random question string and store the answer in the session | 77 | 
-  | private | ''getAdditionProblem()'' | Returns a random addition problem after adding the answer to the session | 124 | +| private | ''getAdditionProblem()'' | Returns a random addition problem after adding the answer to the session | 124 | 
-  | private | ''getSubtractionProblem()'' | Returns a random subtraction problem | 164 | +| private | ''getSubtractionProblem()'' | Returns a random subtraction problem | 164 | 
-  | private | ''getMultiplicationProblem()'' | Returns a random multiplication problem | 208 | +| private | ''getMultiplicationProblem()'' | Returns a random multiplication problem | 208 | 
-  | private | ''getDivisionProblem()'' | Returns a random division problem | 248 | +| private | ''getDivisionProblem()'' | Returns a random division problem | 248 | 
-  | private | ''getLetterProblem()'' | Get a random letter position question | 278 | +| private | ''getLetterProblem()'' | Get a random letter position question | 278 | 
-  | private | ''getNumberProblem()'' | For a range of three unique numbers, ask which one is largest or smallest | 426 | +| private | ''getNumberProblem()'' | For a range of three unique numbers, ask which one is largest or smallest | 426 | 
-  | private | ''getWordFromNumber()'' | Returns the name of any integer less than or equal to 100 | 484 | +| private | ''getWordFromNumber()'' | Returns the name of any integer less than or equal to 100 | 484 | 
-  | private | ''storeAnswer()'' | Store an answer in the session | 598 | +| private | ''storeAnswer()'' | Store an answer in the session | 598 | 
-  | private | ''getUniqueIntegers()'' | Returns an array of unique integers between 0 and 100 | 616 |+| private | ''getUniqueIntegers()'' | Returns an array of unique integers between 0 and 100 | 616 |
  
  
Line 70: Line 70:
 Checks whether a user's response matches the stored answer Checks whether a user's response matches the stored answer
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$answer'' | ''(untyped)'' | //required// | The user's submitted response |+|  ''$answer'' |  ''(untyped)'' |  //required// |  The user's submitted response |
  
 **Returns:** ''(none declared)'' — boolean TRUE if the answer is correct **Returns:** ''(none declared)'' — boolean TRUE if the answer is correct
Line 207: Line 207:
 Returns the name of any integer less than or equal to 100 Returns the name of any integer less than or equal to 100
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$number'' | ''(untyped)'' | //required// | A number no greater than 100 |+|  ''$number'' |  ''(untyped)'' |  //required// |  A number no greater than 100 |
  
 **Returns:** ''(none declared)'' — string The name of the integer **Returns:** ''(none declared)'' — string The name of the integer
Line 223: Line 223:
 Store an answer in the session Store an answer in the session
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$answer'' | ''(untyped)'' | //required// | //none// |+|  ''$answer'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 239: Line 239:
 Returns an array of unique integers between 0 and 100 Returns an array of unique integers between 0 and 100
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$howMany'' | ''(untyped)'' | //required// | //none// |+|  ''$howMany'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
scriptlog/lib/core/responsivecaptcha.1790413762.txt.gz · Last modified: by admin