Class TCaptchaImageComponent

Description

JonHaywood <webmaster@thehomeofjon.

JonHaywood <webmaster@thehomeofjon.net> Code courtesy of http://www.white-hat-web-design.co.uk/articles/php-captcha.php

Located in /TCaptchaImageComponent.php (line 8)

TApplicationComponent
   |
   --TCaptchaImageComponent
Variable Summary
Location $_FontFile
Method Summary
CAPTCHA generateCaptchaImage (width $width, height $height, characters $characters)
String generateCode (String $characters)
void getFontFile ()
void onInit (mixed $param)
void setFontFile (mixed $value)
Variables
Location $_FontFile (line 13)
  • var: of font to use for image
  • access: private
Methods
generateCaptchaImage (line 39)

Generates CAPTCHA image

Generates CAPTCHA image

  • return: image. Use imagecreate to display.
  • access: public
CAPTCHA generateCaptchaImage (width $width, height $height, characters $characters)
  • width $width: - width of image
  • height $height: - height of image
  • characters $characters: - length of security code
generateCode (line 19)
  • return: random security code
  • access: protected
String generateCode (String $characters)
  • String $characters: number of random characters to generate
getFontFile (line 90)

Gets the location of the true-type font

Gets the location of the true-type font

  • access: public
void getFontFile ()
onInit (line 94)
  • access: public
void onInit (mixed $param)
setFontFile (line 82)

Sets the location of the true-type font

Sets the location of the true-type font

  • access: public
void setFontFile (mixed $value)

Documentation generated on Fri, 27 Jul 2007 11:06:01 -0300 by phpDocumentor 1.3.0RC3