\libRainCaptcha

Summary

Methods
Properties
Constants
__construct()
getImage()
checkAnswer()
No public properties found
HOST
No protected methods found
No protected properties found
N/A
No private methods found
$sessionId
N/A

Constants

HOST

HOST

constant holding the API url

Properties

$sessionId

$sessionId : string

hold the session id

Type

string

Methods

__construct()

__construct(string  $sessionId = null) 

when class is called sessionId is stored or sersver settings are used for reference

Parameters

string $sessionId

instance id

getImage()

getImage() : \lib\image

generate an image for the captcha

Returns

\lib\image

checkAnswer()

checkAnswer(string  $answer) : boolean

compare given anser against the generated session

Parameters

string $answer

Returns

boolean