Jelix 1.6.40

CaptchaValidatorInterface
in

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

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
Return values
null|int

Search results