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

Class: Text_CAPTCHA_Driver_Equation

Source Location: /Text_CAPTCHA-1.0.2/Text/CAPTCHA/Driver/Equation.php

Class Overview

Text_CAPTCHA_Driver_Base
   |
   --Text_CAPTCHA_Driver_Equation

Equation driver for Text_CAPTCHA.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Text_CAPTCHA_Driver_Base

Text_CAPTCHA_Driver_Base::getCAPTCHA()
Place holder for the real getCAPTCHA() method used by extended classes to return the generated CAPTCHA (as an image resource, as an ASCII text, ...)
Text_CAPTCHA_Driver_Base::getPhrase()
Return secret CAPTCHA phrase This method returns the CAPTCHA phrase
Text_CAPTCHA_Driver_Base::resetDriver()
Reset the phrase and the CAPTCHA.
Text_CAPTCHA_Driver_Base::setCaptcha()
Sets the generated captcha.
Text_CAPTCHA_Driver_Base::setPhrase()
Sets secret CAPTCHA phrase.

Class Details

[line 29]
Equation driver for Text_CAPTCHA.

Returns simple equations as string, e.g. "9 - 2"



[ Top ]


Method Detail

createCAPTCHA   [line 140]

void createCAPTCHA( )

Create random CAPTCHA equation.

This method creates a random equation.

  • Throws: Text_CAPTCHA_Exception when invalid severity is specified
  • Access: public

[ Top ]

createPhrase   [line 211]

void createPhrase( )

Creates the captcha. This method is a placeholder, since the equation is created in createCAPTCHA()

[ Top ]

initDriver   [line 97]

void initDriver( [array $options = array()])

Initialize the driver.
  • Throws: Text_CAPTCHA_Exception when numbersToText is true, but Number_Words package is not available
  • Access: public

Parameters:

array   $options     CAPTCHA options with these keys:
min minimum numeric value max maximum numeric value numbersToText boolean for number to text conversion locale locale for number to text conversion severity number for complexity

[ Top ]


Documentation generated on Fri, 28 Feb 2014 16:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.