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

Class: Text_CAPTCHA_Driver_Image

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

Class Overview

Text_CAPTCHA
   |
   --Text_CAPTCHA_Driver_Image

Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Text_CAPTCHA

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

Class Details

[line 19]
Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs

Class to create a graphical Turing test

  • Author: Christian Wenz <wenz@php.net>
  • Todo: consider removing Image_Text dependency
  • Todo: refine the obfuscation algorithm :-)
  • License: BSD


[ Top ]


Class Variables

$_error =  null

[line 91]

Last error
  • Access: protected

Type:   PEAR_Error


[ Top ]



Method Detail

getCAPTCHA   [line 266]

mixed getCAPTCHA( )

Return CAPTCHA as image resource

This method returns the CAPTCHA depending on the output format

  • Return: image resource or PEAR error
  • Access: public

[ Top ]

getCAPTCHAAsGIF   [line 356]

mixed getCAPTCHAAsGIF( )

Return CAPTCHA as GIF

This method returns the CAPTCHA as GIF

  • Return: image contents or PEAR error
  • Access: public

[ Top ]

getCAPTCHAAsJPEG   [line 329]

mixed getCAPTCHAAsJPEG( )

Return CAPTCHA as JPEG

This method returns the CAPTCHA as JPEG

  • Return: image contents or PEAR error
  • Access: public

[ Top ]

getCAPTCHAAsPNG   [line 302]

mixed getCAPTCHAAsPNG( )

Return CAPTCHA as PNG

This method returns the CAPTCHA as PNG

  • Return: image contents or PEAR error
  • Access: public

[ Top ]

init   [line 103]

mixed init( [array $options = array()])

init function

Initializes the new Text_CAPTCHA_Driver_Image object and creates a GD image

  • Return: true upon success, PEAR error otherwise
  • Access: public

Parameters:

array   $options     CAPTCHA options

[ Top ]

__wakeup   [line 380]

void __wakeup( )

__wakeup method (PHP 5 only)

[ Top ]


Documentation generated on Sat, 16 Mar 2013 15:30:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.