Class Color
Check if the input is valid Hex color
-
Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\Regex
-
Wei\Validator\Color
Methods inherited from Wei\Validator\BaseValidator
addError(),
getErrors(),
getFirstMessage(),
getJoinedMessage(),
getMessages(),
getName(),
hasError(),
isString(),
isValid(),
loadTranslationMessages(),
setMessages(),
setName(),
storeOption()
|
Properties summary
protected
string
|
$patternMessage
|
#
'%name% must be valid hex color, e.g. #FF0000'
|
protected
string
|
$negativeMessage
The common message for negative validator
The common message for negative validator
|
#
'%name% must not be valid hex color'
|
protected
string
|
$pattern
|
#
'/^#([0-9a-fA-F]{3}){1,2}$/'
|