PHP Class Elcodi\Admin\CurrencyBundle\Form\DataMapper\MoneyDataMapper

Inheritance: implements Symfony\Component\Form\DataMapperInterface
Show file Open project: elcodi/bamboo

Public Methods

Method Description
mapDataToForms ( mixed $data, Symfony\Component\Form\FormInterface[] $forms ) Maps properties of some data to a list of forms.
mapFormsToData ( Symfony\Component\Form\FormInterface[] $forms, mixed &$data ) Maps the data of a list of forms into the properties of some data.

Method Details

mapDataToForms() public method

Maps properties of some data to a list of forms.
public mapDataToForms ( mixed $data, Symfony\Component\Form\FormInterface[] $forms )
$data mixed Structured data.
$forms Symfony\Component\Form\FormInterface[] A list of {@link FormInterface} instances.

mapFormsToData() public method

Maps the data of a list of forms into the properties of some data.
public mapFormsToData ( Symfony\Component\Form\FormInterface[] $forms, mixed &$data )
$forms Symfony\Component\Form\FormInterface[] A list of {@link FormInterface} instances.
$data mixed Structured data.