Jelix 1.8.14-pre

CaptchaValidatorInterface

Interface for validators for the captcha widget.

Tags

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

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