Applies a $RuleName to a $FieldName. You can apply as many rules to a field as you like.
public applyRule ( string $FieldName, mixed $RuleName, mixed $CustomError = '' ) | ||
$FieldName | string | The name of the field to apply rules to. |
$RuleName | mixed | The rule name (or array of rule names) to apply to the field. |
$CustomError | mixed | A custom error message you might want to apply to a field if the rule causes an error to be caught. |