\rex_validation_rule

Summary

Methods
Properties
Constants
__construct()
getType()
getOption()
getMessage()
No public properties found
NOT_EMPTY
MIN_LENGTH
MAX_LENGTH
MIN
MAX
URL
EMAIL
MATCH
NOT_MATCH
VALUES
CUSTOM
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

NOT_EMPTY

NOT_EMPTY = 'notEmpty'

MIN_LENGTH

MIN_LENGTH = 'minLength'

MAX_LENGTH

MAX_LENGTH = 'maxLength'

MIN

MIN = 'min'

MAX

MAX = 'max'

URL

URL = 'url'

EMAIL

EMAIL = 'email'

MATCH

MATCH = 'match'

NOT_MATCH

NOT_MATCH = 'notMatch'

VALUES

VALUES = 'values'

CUSTOM

CUSTOM = 'custom'

Methods

__construct()

__construct(string  $type, null|string  $message = null, mixed  $option = null) : mixed

Parameters

string $type

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

null|string $message

Message which is used if this validator type does not match

mixed $option

Type specific option

Returns

mixed —

getType()

getType() : string

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

Returns

string —

getOption()

getOption() : mixed

Type specific option.

Returns

mixed —

getMessage()

getMessage() : ?string

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

Returns

?string —