category OSS
package OSS_Captcha
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

The constructor generates a Captcha image.

__construct(int $dotNoise, int $lineNoise, int $wordLen, int $timeout) : \OSS_Captcha_Image

Parameters

$dotNoise

int

The dot noise level. Default: 100.

$lineNoise

int

The line noise level. Default: 5.

$wordLen

int

The length of the Captcha word. Default: 6.

$timeout

int

The timeout in seconds. Default: 1800.

Returns

Validates a captcha with the given ID against the given string.

_isValid(string $id, string $value) : bool
Static

Parameters

$id

string

The Captcha ID

$value

string

The captcha value from the 'user' being tested

Returns

bool