DataMapper
in package
implements
DataMapperInterface
Maps arrays/objects to/from forms using data accessors.
Tags
Table of Contents
Interfaces
Properties
- $dataAccessor : mixed
Methods
- __construct() : mixed
- mapDataToForms() : void
- Maps the view data of a compound form to its children.
- mapFormsToData() : void
- Maps the model data of a list of children forms into the view data of their parent.
Properties
$dataAccessor
private
mixed
$dataAccessor
Methods
__construct()
public
__construct([DataAccessorInterface $dataAccessor = null ]) : mixed
Parameters
- $dataAccessor : DataAccessorInterface = null
mapDataToForms()
Maps the view data of a compound form to its children.
public
mapDataToForms(mixed $data, Traversable $forms) : void
Parameters
mapFormsToData()
Maps the model data of a list of children forms into the view data of their parent.
public
mapFormsToData(Traversable $forms, mixed &$data) : void