NormalizedData
- class NormalizedData
-
- Fully qualified name
-
\Denkwerk\
Mosparo Form\ Domain\ Model\ Dto\ Normalized Data
A data container class holding normalized $_POST data for mosparo validation.
- setFormData ( array $formData)
-
Set the list of form data fields.
- param array<string, mixed> $formData
-
The form data.
- Returns
-
void
- getFormData ( )
-
Get the list of form data fields.
- Returns
-
Normalized $_POST data as an array<string, mixed> ready to be validated by mosparo, or an empty array if not applicable.
- addFormData ( string $key, mixed $value)
-
Add a field to the form data.
- param string $key
-
The field key.
- param mixed $value
-
The field value.
- Returns
-
void
- setRequiredFields ( array $requiredFields)
-
Set the list of required fields.
- param array<string> $requiredFields
-
The list of required fields.
- Returns
-
void
- getRequiredFields ( )
-
Get the list of required fields.
- Returns
-
An array of field names that must be validated by mosparo.
- addRequiredField ( string $value)
-
Add a field to the required fields list.
- param string $value
-
The field key.
- Returns
-
void
- setVerifiableFields ( array $verifiableFields)
-
Set the list of verifiable fields.
- param array<string> $verifiableFields
-
The verifiable field names.
- Returns
-
void