class SecurimageController extends Controller (View source)

Properties

protected $securimage

Methods

showInput($args = false)

Displays the text input field that must be entered when used with a corresponding image.

display()

Display the captcha.

label()

Displays the label for this captcha library.

__construct()

No description

displayCaptchaPicture()

Print the captcha image. You usually don't have to call this method directly.

bool
check(string $fieldName = 'ccmCaptchaCode')

Checks the captcha code the user has entered.

Details

showInput($args = false)

Displays the text input field that must be entered when used with a corresponding image.

Parameters

$args

display()

Display the captcha.

label()

Displays the label for this captcha library.

__construct()

No description

displayCaptchaPicture()

Print the captcha image. You usually don't have to call this method directly.

It gets called by captcha.php from the tools.

bool check(string $fieldName = 'ccmCaptchaCode')

Checks the captcha code the user has entered.

Parameters

string $fieldName

Optional name of the field that contains the captcha code

Return Value

bool

true if the code was correct, false if not