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

Class: Text_CAPTCHA

Source Location: /Text_CAPTCHA-0.3.0/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_Numeral
Class used for numeral captchas
Text_CAPTCHA_Driver_Image
Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs
Text_CAPTCHA_Driver_Figlet
Text_CAPTCHA_Driver_Figlet - Text_CAPTCHA driver Figlet based CAPTCHAs

Inherited Variables

Inherited Methods


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 ]


Method Detail

factory   [line 155]

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

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

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 Mon, 11 Mar 2019 14:44:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.