CanValidateMultiForm
Table of Contents
- validateCED() : Result
- Validates each row of a "Create Edit Delete" input read from getPost($name); sets doNothing if it is absent, and errors carry the row's subname and index
Methods
validateCED()
Validates each row of a "Create Edit Delete" input read from getPost($name); sets doNothing if it is absent, and errors carry the row's subname and index
public
validateCED(string $name, array<string|int, Field> $rules) : Result
Parameters
- $name : string
-
Name of the input field
- $rules : array<string|int, Field>
-
Fields every row is validated against
Return values
Result —Result of the validation. Needed to perform response actions