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
CUSTOM
public
mixed
CUSTOM
= 'custom'
public
mixed
EMAIL
= 'email'
MATCH
public
mixed
MATCH
= 'match'
MAX
public
mixed
MAX
= 'max'
MAX_LENGTH
public
mixed
MAX_LENGTH
= 'maxLength'
MIN
public
mixed
MIN
= 'min'
MIN_LENGTH
public
mixed
MIN_LENGTH
= 'minLength'
NOT_EMPTY
public
mixed
NOT_EMPTY
= 'notEmpty'
NOT_MATCH
public
mixed
NOT_MATCH
= 'notMatch'
URL
public
mixed
URL
= 'url'
VALUES
public
mixed
VALUES
= 'values'
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|nullgetOption()
Type specific option.
public
getOption() : mixed
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