Jelix 1.6.40

ReCaptchaValidator
in package
implements CaptchaValidatorInterface

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

Return values
mixed

validate()

Validate the data coming from the submitted form.

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

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

Parameters
$value : mixed

the value of the control if it exists

$internalData : mixed
Return values
null|int

Search results