Method |
Description |
|
applyParsley ( ) : void |
Sets the html attributes required for frontend validation
Subclasses should call parent::applyParsley |
|
getConstraintName ( ) : string |
Gets the name of this constraint from it's classname which should correspond
to the string that parsley uses to identify a constraint type |
|
getDefaultMessage ( ) : string |
Return the default message for this constraint |
|
getField ( ) : FormField |
|
|
getMessage ( ) : string |
Get's the message that was set on the constrctor or falls back to default |
|
loadExtra ( string $name ) |
Load extra validator |
|
removeParsley ( ) : void |
Removes the html attributes required for frontend validation
Subclasses should call parent::removeParsley |
|
setField ( FormField $field ) : this |
Set the field this constraint is applied to |
|
setMessage ( string $message ) : this |
Set a custom message for this constraint |
|
validate ( $value ) : boolean |
Performs php validation on the value |
|