\ValidFormBuilderValidator

Validator Class

Summary

Methods
Properties
Constants
validate()
getCheck()
$checks
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$checks

$checks : array

Static array of validation types

Type

array

Methods

validate()

validate(integer  $checkType, string  $value) : boolean

Validate input against regular expression

Parameters

integer $checkType

The type to check for

string $value

The value to validate

Returns

boolean —

True if valid, false if not.

getCheck()

getCheck(integer  $checkType) : string

Get the regular expression that is used by the given field type

Parameters

integer $checkType

Field type

Returns

string —

The matching regular expression