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

Class: NumeralCaptcha

Source Location: /pearweb-1.1.5/public_html/bugs/include/NumeralCaptcha.php

Class Overview


Class used for numeral captchas


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 53]
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

NumeralCaptcha (Constructor)   [line 149]

NumeralCaptcha NumeralCaptcha( )


[ Top ]

getAnswer   [line 370]

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 385]

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 354]

string getOperation( )

Get operation

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

  • Return: The operation String
  • Access: public

[ Top ]

getSecondNumber   [line 399]

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 Sat, 06 Jan 2007 00:32:16 -0500 by phpDocumentor 1.3.0. PEAR Logo Copyright © PHP Group 2004.