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

Class: Text_CAPTCHA_Driver_Image

Source Location: /pear/Text/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 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 21]
Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs

Class to create a graphical Turing test




Tags:

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

Last error



Tags:

access:  protected

Type:   PEAR_Error


[ Top ]



Class Methods


method getCAPTCHA [line 249]

mixed getCAPTCHA( )

Return CAPTCHA as image resource

This method returns the CAPTCHA depending on the output format




Tags:

return:  image resource or PEAR error
access:  public


[ Top ]

method getCAPTCHAAsGIF [line 339]

mixed getCAPTCHAAsGIF( )

Return CAPTCHA as GIF

This method returns the CAPTCHA as GIF




Tags:

return:  image contents or PEAR error
access:  public


[ Top ]

method getCAPTCHAAsJPEG [line 312]

mixed getCAPTCHAAsJPEG( )

Return CAPTCHA as JPEG

This method returns the CAPTCHA as JPEG




Tags:

return:  image contents or PEAR error
access:  public


[ Top ]

method getCAPTCHAAsPNG [line 285]

mixed getCAPTCHAAsPNG( )

Return CAPTCHA as PNG

This method returns the CAPTCHA as PNG




Tags:

return:  image contents or PEAR error
access:  public


[ Top ]

method init [line 97]

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

init function

Initializes the new Text_CAPTCHA_Driver_Image object and creates a GD image




Tags:

return:  true upon success, PEAR error otherwise
access:  public


Parameters:

array   $options   CAPTCHA options

[ Top ]

method __wakeup [line 361]

void __wakeup( )

__wakeup method (PHP 5 only)



[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:51:52 +0100 by phpDocumentor 1.4.3