Documentation

rex_validation_rule
in package

FinalYes

Table of Contents

Constants

CUSTOM  = 'custom'
EMAIL  = 'email'
MATCH  = 'match'
MAX  = 'max'
MAX_LENGTH  = 'maxLength'
MIN  = 'min'
MIN_LENGTH  = 'minLength'
NOT_EMPTY  = 'notEmpty'
NOT_MATCH  = 'notMatch'
URL  = 'url'
VALUES  = 'values'

Methods

__construct()  : mixed
getMessage()  : string|null
Message which is used if this validator type does not match.
getOption()  : mixed
Type specific option.
getType()  : rex_validation_rule::*|string
Validator type, e.g. one of rex_validation_rule::* but could also be extended via rex-factory.

Constants

Methods

__construct()

public __construct(rex_validation_rule::*|string $type[, string|null $message = null ][, mixed $option = null ]) : mixed
Parameters
$type : rex_validation_rule::*|string

Validator type, e.g. one of rex_validation_rule::* but could also be extended via rex-factory

$message : string|null = null

Message which is used if this validator type does not match

$option : mixed = null

Type specific option

getMessage()

Message which is used if this validator type does not match.

public getMessage() : string|null
Return values
string|null

getType()

Validator type, e.g. one of rex_validation_rule::* but could also be extended via rex-factory.

public getType() : rex_validation_rule::*|string
Return values
rex_validation_rule::*|string

$type


        
On this page

Search results