Jelix 1.8.14-pre

SimpleCaptchaValidator
in package
implements CaptchaValidatorInterface

Tags

Interfaces, Classes and Traits

CaptchaValidatorInterface
Interface for validators for the captcha widget.

Table of Contents

initOnDisplay()  : mixed
called by the widget to initialize some data when the form is generated.
validate()  : null|int
Validate the data coming from the submitted form.

Methods

initOnDisplay()

called by the widget to initialize some data when the form is generated.

public initOnDisplay() : mixed

It can returns some data that can be useful for the widget, and which will be passed to validate() method ($internalData)

Tags
Return values
mixed

validate()

Validate the data coming from the submitted form.

public validate(string $value, mixed $internalData) : null|int

It should returns null if it is ok, or one of jForms::ERRDATA_* constant

Parameters
$value : string

the value of the control if it exists

$internalData : mixed
Tags
Return values
null|int

Search results