ListTransformer
in package
implements
IFormTransformer
FinalYes
Table of Contents
Interfaces
- IFormTransformer
- Transforms the data submitted with a POST request from its PHP representation (parsedBody) to its representation in the app (formData).
Properties
- $formFactory : FormFactory
- $name : string
- $nodeConf : FormFieldConf
Methods
- __construct() : mixed
- transformSubmittedData() : array<int, mixed>
- Extract the submitted value for the given field and convert it to the app data format.
Properties
$formFactory
private
FormFactory
$formFactory
$name
private
string
$name
$nodeConf
private
FormFieldConf
$nodeConf
Methods
__construct()
public
__construct(FormFieldConf $nodeConf, FormFactory $formFactory, string $name) : mixed
Parameters
- $nodeConf : FormFieldConf
- $formFactory : FormFactory
- $name : string
transformSubmittedData()
Extract the submitted value for the given field and convert it to the app data format.
public
transformSubmittedData(array<string|int, mixed> $parsedPayload, array<string|int, mixed> $uploadedFiles) : array<int, mixed>
Parameters
- $parsedPayload : array<string|int, mixed>
- $uploadedFiles : array<string|int, mixed>
Attributes
- #[Override]