XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsCaptchaImageHandler Class Reference

Public Member Functions

 __construct ()
 
 createFromFile ()
 
 createImage ()
 
 createImageBmp ($file="")
 
 createImageGd ()
 
 drawBars ()
 
 drawBorder ()
 
 drawCircles ()
 
 drawCode ()
 
 drawEllipses ()
 
 drawLines ()
 
 drawPolygons ()
 
 drawRectangles ()
 
 generateCode ()
 
 getList ($name, $extension="")
 
 loadBackground ()
 
 loadFont ()
 
 loadImage ()
 
 setImageSize ()
 
 XoopsCaptchaImageHandler ()
 

Public Attributes

 $captcha_handler
 
 $code
 
 $config = array()
 
 $font
 
 $height
 
 $invalid = false
 
 $mode = 'gd'
 
 $spacing
 
 $width
 

Detailed Description

Definition at line 32 of file image.php.

Constructor & Destructor Documentation

XoopsCaptchaImageHandler::__construct ( )

Definition at line 46 of file image.php.

References XoopsCaptcha\getInstance(), and xoops_load().

Referenced by XoopsCaptchaImageHandler().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

XoopsCaptchaImageHandler::createFromFile ( )

Draw Image background

Definition at line 235 of file image.php.

References drawBars(), and loadBackground().

Referenced by createImageGd().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::createImage ( )

Definition at line 92 of file image.php.

References createImageBmp(), and createImageGd().

Referenced by loadImage().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::createImageBmp (   $file = "")

#@- Create CAPTCHA image with BMP

TODO

Definition at line 383 of file image.php.

References $file, and $image.

Referenced by createImage().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::createImageGd ( )

#@+ Create CAPTCHA iamge with GD Originated by DuGris' SecurityImage

Definition at line 138 of file image.php.

References createFromFile(), drawBars(), drawBorder(), drawCircles(), drawCode(), drawEllipses(), drawLines(), drawPolygons(), drawRectangles(), loadFont(), and setImageSize().

Referenced by createImage().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawBars ( )

Draw Bars background

Definition at line 336 of file image.php.

References $height, $i, and $width.

Referenced by createFromFile(), and createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawBorder ( )

Draw Border

Definition at line 293 of file image.php.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawCircles ( )

Draw Circles background

Definition at line 303 of file image.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawCode ( )

Draw Code

Definition at line 264 of file image.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawEllipses ( )

Draw Ellipses background

Definition at line 353 of file image.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawLines ( )

Draw Lines background

Definition at line 314 of file image.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawPolygons ( )

Draw polygons background

Definition at line 364 of file image.php.

References $i, and $j.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::drawRectangles ( )

Draw Rectangles background

Definition at line 325 of file image.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::generateCode ( )

Create Code

Definition at line 67 of file image.php.

Referenced by loadImage().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::getList (   $name,
  $extension = "" 
)

Definition at line 107 of file image.php.

References XoopsCache\read(), XoopsCache\write(), and xoops_load().

Referenced by loadBackground(), and loadFont().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::loadBackground ( )

Return random background

Returns
array

Definition at line 223 of file image.php.

References getList().

Referenced by createFromFile().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::loadFont ( )

Definition at line 185 of file image.php.

References getList().

Referenced by createImageGd().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsCaptchaImageHandler::loadImage ( )

Definition at line 58 of file image.php.

References createImage(), and generateCode().

Here is the call graph for this function:

XoopsCaptchaImageHandler::setImageSize ( )

Definition at line 191 of file image.php.

References $i.

Referenced by createImageGd().

Here is the caller graph for this function:

XoopsCaptchaImageHandler::XoopsCaptchaImageHandler ( )

Definition at line 53 of file image.php.

References __construct().

Here is the call graph for this function:

Member Data Documentation

XoopsCaptchaImageHandler::$captcha_handler

Definition at line 44 of file image.php.

XoopsCaptchaImageHandler::$code

Definition at line 35 of file image.php.

XoopsCaptchaImageHandler::$config = array()

Definition at line 34 of file image.php.

XoopsCaptchaImageHandler::$font

Definition at line 39 of file image.php.

XoopsCaptchaImageHandler::$height

Definition at line 42 of file image.php.

Referenced by drawBars().

XoopsCaptchaImageHandler::$invalid = false

Definition at line 37 of file image.php.

XoopsCaptchaImageHandler::$mode = 'gd'

Definition at line 36 of file image.php.

XoopsCaptchaImageHandler::$spacing

Definition at line 40 of file image.php.

XoopsCaptchaImageHandler::$width

Definition at line 41 of file image.php.

Referenced by drawBars().


The documentation for this class was generated from the following file: