[ class tree: Text_CAPTCHA_Numeral ] [ index: Text_CAPTCHA_Numeral ] [ all elements ]

Class: Text_CAPTCHA_Numeral

Source Location: /Text_CAPTCHA_Numeral-1.2.0/Numeral.php

Class Overview

Class used for numeral captchas



Inherited Variables

Inherited Methods

Class Details

[line 55]
Class used for numeral captchas

This class is intended to be used to generate numeral captchas as such as: Example: Give me the answer to "54 + 2" to prove that you are human.

[ Top ]

Method Detail

__construct (Constructor)   [line 185]

Text_CAPTCHA_Numeral __construct( [constant $complexityType = self::TEXT_CAPTCHA_NUMERAL_COMPLEXITY_ELEMENTARY])

Constructor with different levels of mathematical operations sets
  • Access: public


constant   $complexityType   — 

[ Top ]

getAnswer   [line 544]

string getAnswer( )

Get the answer value

This function will retrieve the answer value from this->answer and return it so we can then display it to the user.

  • Return: The operation answer value.
  • Access: public

[ Top ]

getFirstNumber   [line 559]

integer getFirstNumber( )

Get the first number

This function will get the first number value from $this->firstNumber

  • Return: The firstNumber
  • Access: public

[ Top ]

getOperation   [line 528]

string getOperation( )

Get operation

This function will get the operation string from $this->operation

  • Return: The operation String
  • Access: public

[ Top ]

getSecondNumber   [line 573]

integer getSecondNumber( )

Get the second number value

This function will return the second number value

  • Return: The second number
  • Access: public

[ Top ]

Documentation generated on Thu, 10 Dec 2015 05:44:52 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.