Method |
Description |
|
__construct ( array $constraints = [], boolean $parsleyEnabled = true, boolean $defaultJS = null ) |
|
|
addRequiredFields ( $fields ) : this |
A quick way of adding required constraints to a number of fields |
|
applyParsley ( ) |
applyParsley |
|
disableParsley ( ) : this |
disableParsley |
|
fieldIsRequired ( string $fieldName ) : boolean |
Returns whether the field in question is required. This will usually display '*' next to the
field. |
|
getConstraint ( string $fieldName, string $constraintName ) : ZenValidatorConstraint |
get a constraint by fieldName, constraintName |
|
getConstraints ( string $fieldName ) : array |
get constraints by fieldName |
|
parsleyIsEnabled ( ) : boolean |
parsleyIsEnabled |
|
php ( $data ) : boolean |
Performs the php validation on all ZenValidatorConstraints attached to this validator |
|
removeAllValidation ( ) |
Removes all constraints from this validator. |
|
removeConstraint ( $fieldName, string $constraintName ) |
remove a constraint from a field |
|
removeConstraints ( $fieldName ) |
remove all constraints from a field |
|
removeValidation ( ) |
This method is not imeplemented because form->transform calls it, but not all FormTransformations
necessarily want to remove validation. |
|
setConstraint ( $fieldName, ZenFieldValidator $constraint ) |
setConstraint - sets a ZenValidatorContraint on this validator |
|
setConstraints ( array $constraints ) |
setConstraints - sets multiple constraints on this validator |
|
setForm ( Form $form ) |
|
|