RadioListMapper
in package
implements
DataMapperInterface
Maps choices to/from radio forms.
A implementation is used to find the corresponding string values for the choices. The radio form whose "value" option corresponds to the selected value is marked as selected.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- mapDataToForms() : mixed
- Maps the view data of a compound form to its children.
- mapFormsToData() : mixed
- Maps the model data of a list of children forms into the view data of their parent.
Methods
mapDataToForms()
Maps the view data of a compound form to its children.
public
mapDataToForms(mixed $choice, mixed $radios) : mixed
Parameters
- $choice : mixed
- $radios : mixed
Return values
mixed —mapFormsToData()
Maps the model data of a list of children forms into the view data of their parent.
public
mapFormsToData(mixed $radios, mixed &$choice) : mixed
Parameters
- $radios : mixed
- $choice : mixed