PHP Class PhpCaptcha

Mostra file Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$aCharSet
$aFontColorRange
$aFonts
$bCaseInsensitive
$bCharShadow
$bUseColour
$iHeight
$iMaxFontSize
$iMinFontSize
$iNumChars
$iNumLines
$iSpacing
$iWidth
$oImage
$sCode
$sFileType
$sOwnerText
$vBackgroundImages

Public Methods

Method Description
CalculateSpacing ( )
CaseInsensitive ( $bCaseInsensitive )
Create ( $sFilename = '' )
DisplayShadow ( $bCharShadow )
DrawCharacters ( )
DrawLines ( )
DrawOwnerText ( )
GenerateCode ( )
PhpCaptcha ( $aFonts, $iWidth = CAPTCHA_WIDTH, $iHeight = CAPTCHA_HEIGHT )
SetBackgroundImages ( $vBackgroundImages )
SetCharSet ( $vCharSet )
SetFileType ( $sFileType )
SetFontColorRange ( $iMinValue, $iMaxValue = null )
SetHeight ( $iHeight )
SetMaxFontSize ( $iMaxFontSize )
SetMinFontSize ( $iMinFontSize )
SetNumChars ( $iNumChars )
SetNumLines ( $iNumLines )
SetOwnerText ( $sOwnerText )
SetWidth ( $iWidth )
UseColour ( $bUseColour )
Validate ( $sUserCode, $bCaseInsensitive = true ) call this method statically
WriteFile ( $sFilename )

Method Details

CalculateSpacing() public method

public CalculateSpacing ( )

CaseInsensitive() public method

public CaseInsensitive ( $bCaseInsensitive )

Create() public method

public Create ( $sFilename = '' )

DisplayShadow() public method

public DisplayShadow ( $bCharShadow )

DrawCharacters() public method

public DrawCharacters ( )

DrawLines() public method

public DrawLines ( )

DrawOwnerText() public method

public DrawOwnerText ( )

GenerateCode() public method

public GenerateCode ( )

PhpCaptcha() public method

public PhpCaptcha ( $aFonts, $iWidth = CAPTCHA_WIDTH, $iHeight = CAPTCHA_HEIGHT )

SetBackgroundImages() public method

public SetBackgroundImages ( $vBackgroundImages )

SetCharSet() public method

public SetCharSet ( $vCharSet )

SetFileType() public method

public SetFileType ( $sFileType )

SetFontColorRange() public method

public SetFontColorRange ( $iMinValue, $iMaxValue = null )

SetHeight() public method

public SetHeight ( $iHeight )

SetMaxFontSize() public method

public SetMaxFontSize ( $iMaxFontSize )

SetMinFontSize() public method

public SetMinFontSize ( $iMinFontSize )

SetNumChars() public method

public SetNumChars ( $iNumChars )

SetNumLines() public method

public SetNumLines ( $iNumLines )

SetOwnerText() public method

public SetOwnerText ( $sOwnerText )

SetWidth() public method

public SetWidth ( $iWidth )

UseColour() public method

public UseColour ( $bUseColour )

Validate() public method

call this method statically
public Validate ( $sUserCode, $bCaseInsensitive = true )

WriteFile() public method

public WriteFile ( $sFilename )

Property Details

$aCharSet public_oe property

public $aCharSet

$aFontColorRange public_oe property

public $aFontColorRange

$aFonts public_oe property

public $aFonts

$bCaseInsensitive public_oe property

public $bCaseInsensitive

$bCharShadow public_oe property

public $bCharShadow

$bUseColour public_oe property

public $bUseColour

$iHeight public_oe property

public $iHeight

$iMaxFontSize public_oe property

public $iMaxFontSize

$iMinFontSize public_oe property

public $iMinFontSize

$iNumChars public_oe property

public $iNumChars

$iNumLines public_oe property

public $iNumLines

$iSpacing public_oe property

public $iSpacing

$iWidth public_oe property

public $iWidth

$oImage public_oe property

public $oImage

$sCode public_oe property

public $sCode

$sFileType public_oe property

public $sFileType

$sOwnerText public_oe property

public $sOwnerText

$vBackgroundImages public_oe property

public $vBackgroundImages