API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsCaptchaImageHandler Class Reference

Public Member Functions

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

Data Fields

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

__construct ( )
Here is the call graph for this function:

Member Function Documentation

◆ createFromFile()

createFromFile ( )

Draw Image background

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createImage()

createImage ( )
Returns
string|void
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createImageBmp()

createImageBmp (   $file = '')

#- Create CAPTCHA image with BMP

TODO

Parameters
string$file
Returns
string
Here is the caller graph for this function:

◆ createImageGd()

createImageGd ( )

Create CAPTCHA iamge with GD Originated by DuGris' SecurityImage ------------------------------------------------------------------------— // Class : SecurityImage 1.5 // Author: DuGris aka L. Jen http://www.dugris.info // Email : DuGri.nosp@m.s@wa.nosp@m.nadoo.nosp@m..fr // Licence: GNU // Project: The XOOPS Project // ------------------------------------------------------------------------— //

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawBars()

drawBars ( )

Draw Bars background

Here is the caller graph for this function:

◆ drawBorder()

drawBorder ( )

Draw Border

Here is the caller graph for this function:

◆ drawCircles()

drawCircles ( )

Draw Circles background

Here is the caller graph for this function:

◆ drawCode()

drawCode ( )

Draw Code

Here is the caller graph for this function:

◆ drawEllipses()

drawEllipses ( )

Draw Ellipses background

Here is the caller graph for this function:

◆ drawLines()

drawLines ( )

Draw Lines background

Here is the caller graph for this function:

◆ drawPolygons()

drawPolygons ( )

Draw polygons background

Here is the caller graph for this function:

◆ drawRectangles()

drawRectangles ( )

Draw Rectangles background

Here is the caller graph for this function:

◆ generateCode()

generateCode ( )

Create Code

Here is the caller graph for this function:

◆ getList()

getList (   $name,
  $extension = '' 
)
Parameters
string$name
string$extension
Returns
array|mixed
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadBackground()

loadBackground ( )

Return random background

Returns
string|null
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadFont()

loadFont ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadImage()

loadImage ( )
Here is the call graph for this function:

◆ setImageSize()

setImageSize ( )
Here is the caller graph for this function:

Field Documentation

◆ $captchaHandler

$captchaHandler

◆ $code

$code

◆ $config

$config = array()

◆ $font

$font

◆ $height

$height

◆ $invalid

$invalid = false

◆ $mode

$mode = 'gd'

◆ $oImage

$oImage

◆ $spacing

$spacing

◆ $width

$width

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