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

Class: Text_CAPTCHA_Driver_Image

Source Location: /Text_CAPTCHA-0.3.1/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 22]
Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs

Class to create a graphical Turing test

  • Author: Christian Wenz <wenz@php.net>
  • Todo: refine the obfuscation algorithm :-)
  • Todo: learn how to use Image_Text better (or remove dependency)
  • License: PHP


[ Top ]


Class Variables

$_error =  null

[line 93]

Last error
  • Access: protected

Type:   PEAR_Error


[ Top ]



Method Detail

getCAPTCHA   [line 245]

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

mixed getCAPTCHAAsGIF( )

Return CAPTCHA as GIF

This method returns the CAPTCHA as GIF

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

[ Top ]

getCAPTCHAAsJPEG   [line 308]

mixed getCAPTCHAAsJPEG( )

Return CAPTCHA as JPEG

This method returns the CAPTCHA as JPEG

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

[ Top ]

getCAPTCHAAsPNG   [line 281]

mixed getCAPTCHAAsPNG( )

Return CAPTCHA as PNG

This method returns the CAPTCHA as PNG

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

[ Top ]

init   [line 104]

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

void __wakeup( )

__wakeup method (PHP 5 only)

[ Top ]


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