Bitrix API

CCaptcha

Table of Contents

Properties

$arBGColor  : mixed
$arBorderColor  : mixed
$arChars  : mixed
$arEllipseColor  : mixed
$arLineColor  : mixed
$arRealBGColor  : mixed
$arTextColor  : mixed
$arTTFFiles  : mixed
$bEmptyText  : mixed
$bLinesOverText  : mixed
$bTransparentText  : mixed
$bWaveTransformation  : mixed
$code  : mixed
$codeCrypt  : mixed
$codeLength  : mixed
$image  : mixed
$imageHeight  : mixed
$imageWidth  : mixed
$numEllipses  : mixed
$numLines  : mixed
$sid  : mixed
$textAngleFrom  : mixed
$textAngleTo  : mixed
$textDistanceFrom  : mixed
$textDistanceTo  : mixed
$textFontSize  : mixed
$textStartX  : mixed
$transparentTextPercent  : mixed
$ttfFilesPath  : mixed

Methods

__construct()  : mixed
Add()  : mixed
CheckCaptchaCode()  : mixed
CheckCode()  : mixed
CheckCodeCrypt()  : mixed
CreateImage()  : mixed
CreateImageError()  : mixed
CryptData()  : mixed
Delete()  : mixed
DestroyImage()  : mixed
DrawEllipses()  : mixed
DrawLines()  : mixed
DrawText()  : mixed
EmptyText()  : mixed
Generate32RandomString()  : mixed
GetCodeCrypt()  : mixed
GetColor()  : mixed
GetSID()  : mixed
GetTTFFontsPath()  : mixed
InitCaptchaCode()  : mixed
InitCode()  : mixed
InitCodeCrypt()  : mixed
InitImage()  : mixed
Output()  : mixed
OutputError()  : mixed
SetBGColor()  : mixed
SetBGColorRGB()  : mixed
SetBorderColor()  : mixed
SetBorderColorRGB()  : mixed
SetCaptchaCode()  : mixed
SetCode()  : mixed
SetCodeChars()  : mixed
SetCodeCrypt()  : mixed
SetCodeLength()  : mixed
SetColor()  : mixed
SetEllipseColor()  : mixed
SetEllipseColorRGB()  : mixed
SetEllipsesNumber()  : mixed
SetEmptyText()  : mixed
SetImageSize()  : mixed
SetLineColor()  : mixed
SetLineColorRGB()  : mixed
SetLinesNumber()  : mixed
SetLinesOverText()  : mixed
SetTextColor()  : mixed
SetTextColorRGB()  : mixed
SetTextTransparent()  : mixed
SetTextWriting()  : mixed
SetTTFFonts()  : mixed
SetTTFFontsPath()  : mixed
SetWaveTransformation()  : mixed
ShowImage()  : mixed
Wave()  : mixed

Properties

$arBGColor

public mixed $arBGColor = [[255, 255], [255, 255], [255, 255]]

$arBorderColor

public mixed $arBorderColor = [0, 0, 0]

$arChars

public mixed $arChars = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'W', 'X', 'Y', 'Z', '2', '3', '4', '5', '6', '7', '8', '9']

$arEllipseColor

public mixed $arEllipseColor = [[127, 255], [127, 255], [127, 255]]

$arLineColor

public mixed $arLineColor = [[110, 250], [110, 250], [110, 250]]

$arRealBGColor

public mixed $arRealBGColor = \false

$arTextColor

public mixed $arTextColor = [[0, 100], [0, 100], [0, 100]]

$arTTFFiles

public mixed $arTTFFiles = ["font.ttf"]

$bEmptyText

public mixed $bEmptyText = \false

$bLinesOverText

public mixed $bLinesOverText = \false

$bTransparentText

public mixed $bTransparentText = \true

$bWaveTransformation

public mixed $bWaveTransformation = \false

$codeLength

public mixed $codeLength = 5

$imageHeight

public mixed $imageHeight = 40

$imageWidth

public mixed $imageWidth = 180

$numEllipses

public mixed $numEllipses = 100

$numLines

public mixed $numLines = 20

$textAngleFrom

public mixed $textAngleFrom = -20

$textAngleTo

public mixed $textAngleTo = 20

$textDistanceFrom

public mixed $textDistanceFrom = 27

$textDistanceTo

public mixed $textDistanceTo = 32

$textFontSize

public mixed $textFontSize = 20

$textStartX

public mixed $textStartX = 7

$transparentTextPercent

public mixed $transparentTextPercent = 10

$ttfFilesPath

public mixed $ttfFilesPath = "/bitrix/modules/main/fonts"

Methods

__construct()

public __construct() : mixed

Add()

public Add(mixed $arFields) : mixed
Parameters
$arFields : mixed

CheckCaptchaCode()

public CheckCaptchaCode(mixed $userCode, mixed $sid[, mixed $bUpperCode = true ]) : mixed
Parameters
$userCode : mixed
$sid : mixed
$bUpperCode : mixed = true

CheckCode()

public CheckCode(mixed $userCode, mixed $sid[, mixed $bUpperCode = true ]) : mixed
Parameters
$userCode : mixed
$sid : mixed
$bUpperCode : mixed = true

CheckCodeCrypt()

public CheckCodeCrypt(mixed $userCode, mixed $codeCrypt[, mixed $password = "" ][, mixed $bUpperCode = true ]) : mixed
Parameters
$userCode : mixed
$codeCrypt : mixed
$password : mixed = ""
$bUpperCode : mixed = true

CreateImage()

public CreateImage() : mixed

CreateImageError()

public CreateImageError(mixed $arMsg) : mixed
Parameters
$arMsg : mixed

CryptData()

public CryptData(mixed $data, mixed $type, mixed $pwdString) : mixed
Parameters
$data : mixed
$type : mixed
$pwdString : mixed

Delete()

public Delete(mixed $sid) : mixed
Parameters
$sid : mixed

DestroyImage()

public DestroyImage() : mixed

DrawEllipses()

public DrawEllipses() : mixed

DrawLines()

public DrawLines() : mixed

DrawText()

public DrawText() : mixed

EmptyText()

public EmptyText() : mixed

Generate32RandomString()

public Generate32RandomString() : mixed

GetCodeCrypt()

public GetCodeCrypt() : mixed

GetColor()

public GetColor(mixed $arColor) : mixed
Parameters
$arColor : mixed

GetTTFFontsPath()

public GetTTFFontsPath() : mixed

InitCaptchaCode()

public InitCaptchaCode(mixed $sid) : mixed
Parameters
$sid : mixed

InitCode()

public InitCode(mixed $sid) : mixed
Parameters
$sid : mixed

InitCodeCrypt()

public InitCodeCrypt(mixed $codeCrypt) : mixed
Parameters
$codeCrypt : mixed

InitImage()

public InitImage([mixed $width = false ][, mixed $height = false ]) : mixed
Parameters
$width : mixed = false
$height : mixed = false

OutputError()

public OutputError() : mixed

SetBGColor()

public SetBGColor(mixed $arColor) : mixed
Parameters
$arColor : mixed

SetBGColorRGB()

public SetBGColorRGB(mixed $color_1, mixed $color_2) : mixed
Parameters
$color_1 : mixed
$color_2 : mixed

SetBorderColor()

public SetBorderColor(mixed $arColor) : mixed
Parameters
$arColor : mixed

SetBorderColorRGB()

public SetBorderColorRGB(mixed $color) : mixed
Parameters
$color : mixed

SetCaptchaCode()

public SetCaptchaCode([mixed $sid = false ]) : mixed
Parameters
$sid : mixed = false

SetCodeChars()

public SetCodeChars(mixed $arChars) : mixed
Parameters
$arChars : mixed

SetCodeCrypt()

public SetCodeCrypt() : mixed

SetCodeLength()

public SetCodeLength(mixed $length) : mixed
Parameters
$length : mixed

SetColor()

public SetColor(mixed $arColor) : mixed
Parameters
$arColor : mixed

SetEllipseColor()

public SetEllipseColor(mixed $arColor) : mixed
Parameters
$arColor : mixed

SetEllipseColorRGB()

public SetEllipseColorRGB(mixed $color_1, mixed $color_2) : mixed
Parameters
$color_1 : mixed
$color_2 : mixed

SetEllipsesNumber()

public SetEllipsesNumber(mixed $num) : mixed
Parameters
$num : mixed

SetEmptyText()

public SetEmptyText(mixed $bEmptyText) : mixed
Parameters
$bEmptyText : mixed

SetImageSize()

public SetImageSize(mixed $width, mixed $height) : mixed
Parameters
$width : mixed
$height : mixed

SetLineColor()

public SetLineColor(mixed $arColor) : mixed
Parameters
$arColor : mixed

SetLineColorRGB()

public SetLineColorRGB(mixed $color_1, mixed $color_2) : mixed
Parameters
$color_1 : mixed
$color_2 : mixed

SetLinesNumber()

public SetLinesNumber(mixed $num) : mixed
Parameters
$num : mixed

SetLinesOverText()

public SetLinesOverText(mixed $bLinesOverText) : mixed
Parameters
$bLinesOverText : mixed

SetTextColor()

public SetTextColor(mixed $arColor) : mixed
Parameters
$arColor : mixed

SetTextColorRGB()

public SetTextColorRGB(mixed $color_1, mixed $color_2) : mixed
Parameters
$color_1 : mixed
$color_2 : mixed

SetTextTransparent()

public SetTextTransparent(mixed $bTransparentText[, mixed $transparentTextPercent = 10 ]) : mixed
Parameters
$bTransparentText : mixed
$transparentTextPercent : mixed = 10

SetTextWriting()

public SetTextWriting(mixed $angleFrom, mixed $angleTo, mixed $startX, mixed $distanceFrom, mixed $distanceTo, mixed $fontSize) : mixed
Parameters
$angleFrom : mixed
$angleTo : mixed
$startX : mixed
$distanceFrom : mixed
$distanceTo : mixed
$fontSize : mixed

SetTTFFonts()

public SetTTFFonts(mixed $arFonts) : mixed
Parameters
$arFonts : mixed

SetTTFFontsPath()

public SetTTFFontsPath(mixed $ttfFilesPath) : mixed
Parameters
$ttfFilesPath : mixed

SetWaveTransformation()

public SetWaveTransformation(mixed $bWaveTransformation) : mixed
Parameters
$bWaveTransformation : mixed

ShowImage()

public ShowImage() : mixed

        
On this page

Search results