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

Class: Text_CAPTCHA_Driver_Image

Source Location: /Text_CAPTCHA-0.1.1/CAPTCHA/Driver/Image.php

Class Overview

Text_CAPTCHA
   |
   --Text_CAPTCHA_Driver_Image

Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Text_CAPTCHA

Text_CAPTCHA::factory()
Create a new Text_CAPTCHA object
Text_CAPTCHA::getPhrase()
Return secret CAPTCHA phrase

Class Details

[line 16]
Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs

Class to create a graphical Turing test

TODOs:

  • refine the obfuscation algorithm :-)
  • learn how to use Image_Text better (or remove dependency)



[ Top ]


Method Detail

getCAPTCHA   [line 179]

im getCAPTCHA( )

Return CAPTCHA as image resource

This method returns the CAPTCHA as GD2 image resource

  • Return: image resource
  • Access: public

[ Top ]

getCAPTCHAAsJPEG   [line 207]

void getCAPTCHAAsJPEG( )

Return CAPTCHA as JPEG

This method returns the CAPTCHA as JPEG

  • Access: public

[ Top ]

getCAPTCHAAsPNG   [line 191]

void getCAPTCHAAsPNG( )

Return CAPTCHA as PNG

This method returns the CAPTCHA as PNG

  • Access: public

[ Top ]

init   [line 71]

void init( [int $width = 200], [int $height = 80], [string $phrase = null], [array $options = null])

init function

Initializes the new Text_CAPTCHA_Driver_Image object and creates a GD image

  • Access: public

Parameters:

int   $width     Width of image
int   $height     Height of image
string   $phrase     The "secret word" of the CAPTCHA
array   $options     further options (for Image_Text)

[ Top ]


Documentation generated on Mon, 8 Nov 2004 12:00:03 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.