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

Class: Text_CAPTCHA

Source Location: /pear/Text/CAPTCHA.php

Class Overview


Text_CAPTCHA - creates a CAPTCHA for Turing tests


Methods


Child classes:

Text_CAPTCHA_Driver_Equation
Equation driver for Text_CAPTCHA.
Text_CAPTCHA_Driver_Figlet
Text_CAPTCHA_Driver_Figlet - Text_CAPTCHA driver Figlet based CAPTCHAs
Text_CAPTCHA_Driver_Image
Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs
Text_CAPTCHA_Driver_Numeral
Class used for numeral captchas
Text_CAPTCHA_Driver_Word
Text_CAPTCHA - creates a CAPTCHA for Turing tests

Class Details

[line 127]
Text_CAPTCHA - creates a CAPTCHA for Turing tests

Class to create a Turing test for websites by creating an image, ASCII art or something else with some (obfuscated) characters




[ Top ]


Class Methods


method factory [line 155]

mixed &factory( string $driver)

Create a new Text_CAPTCHA object



Tags:

return:  a newly created Text_CAPTCHA object, or a PEAR error object on error
see:  PEAR::isError()


Parameters:

string   $driver   name of driver class to initialize

[ Top ]

method getPhrase [line 189]

phrase getPhrase( )

Return secret CAPTCHA phrase

This method returns the CAPTCHA phrase




Tags:

return:  secret phrase
access:  public


Overridden in child classes as:

Text_CAPTCHA_Driver_Equation::getPhrase()
Return the solution to the equation.

[ Top ]

method setPhrase [line 204]

void setPhrase( [string $phrase = null])

Sets secret CAPTCHA phrase

This method sets the CAPTCHA phrase (use null for a random phrase)




Tags:

access:  public


Parameters:

string   $phrase   the (new) phrase

[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:51:43 +0100 by phpDocumentor 1.4.3