Blesta Source Documentation

CaptchaInterface

Captcha interface

Table of Contents

Methods

buildHtml() Builds the HTML content to render the captcha
errors() Retrieves any errors associated with the captcha
setOptions() Sets options for the captcha
verify() Verifies whether or not the captcha is valid
Methods

buildHtml()

Builds the HTML content to render the captcha

public buildHtml() : string
Return values
string

The HTML

errors()

Retrieves any errors associated with the captcha

public errors() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of errors

setOptions()

Sets options for the captcha

public setOptions(array<string|int, mixed> $options) : mixed
Parameters
$options : array<string|int, mixed>

An array of options

verify()

Verifies whether or not the captcha is valid

public verify(array<string|int, mixed> $data) : bool
Parameters
$data : array<string|int, mixed>

An array of data to validate against

Return values
bool

Whether or not the captcha is valid

Tags
subpackage

core.Util.Captcha.Common

copyright

Copyright (c) 2019, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results