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

Class: Text_CAPTCHA_Driver_Image

Source Location: /Text_CAPTCHA-0.3.0/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 243]

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

mixed getCAPTCHAAsGIF( )

Return CAPTCHA as GIF

This method returns the CAPTCHA as GIF

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

[ Top ]

getCAPTCHAAsJPEG   [line 306]

mixed getCAPTCHAAsJPEG( )

Return CAPTCHA as JPEG

This method returns the CAPTCHA as JPEG

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

[ Top ]

getCAPTCHAAsPNG   [line 279]

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

void __wakeup( )

__wakeup method (PHP 5 only)

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:44:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.