Validation

Allows to validate data using custom or built-in validators

Constructors

this
this()
Undocumented in source.

Members

Functions

appendMessage
Validation appendMessage(MessageInterface message)

Appends a message to the messages list

getDefaultMessage
string getDefaultMessage(string type)

Get default message for validator type

getLabel
string getLabel(string field)

Get label for field

getMessages
MessageList getMessages()

Returns the registered validators

getValue
string getValue(string field)

Gets the a value to validate

isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_defaultMessages
enum string[string] _defaultMessages;
Undocumented in source.
_labels
string[string] _labels;
Undocumented in source.
_messages
MessageList _messages;
Undocumented in source.

Meta