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

Class: Text_CAPTCHA

Source Location: /Text_CAPTCHA-0.3.1/CAPTCHA.php

Class Overview


Text_CAPTCHA - creates a CAPTCHA for Turing tests


Methods


Child classes:

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

Inherited Variables

Inherited Methods


Class Details

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


Method Detail

factory   [line 160]

mixed &factory( string $driver)

Create a new Text_CAPTCHA object
  • 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 ]

getPhrase   [line 194]

phrase getPhrase( )

Return secret CAPTCHA phrase

This method returns the CAPTCHA phrase

  • Return: secret phrase
  • Access: public

Overridden in child classes as:

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

[ Top ]

setPhrase   [line 209]

void setPhrase( [string $phrase = null])

Sets secret CAPTCHA phrase

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

  • Access: public

Parameters:

string   $phrase   —  the (new) phrase

[ Top ]


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