PropertyPathMapper
in package
implements
DataMapperInterface
Maps arrays/objects to/from forms using property paths.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $propertyAccessor : mixed
- __construct() : mixed
- 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.
- getPropertyValue() : mixed
Properties
$propertyAccessor
private
mixed
$propertyAccessor
Methods
__construct()
public
__construct([PropertyAccessorInterface $propertyAccessor = null ]) : mixed
Parameters
- $propertyAccessor : PropertyAccessorInterface = null
Return values
mixed —mapDataToForms()
Maps the view data of a compound form to its children.
public
mapDataToForms(mixed $data, mixed $forms) : mixed
Parameters
Return values
mixed —mapFormsToData()
Maps the model data of a list of children forms into the view data of their parent.
public
mapFormsToData(mixed $forms, mixed &$data) : mixed
Parameters
Return values
mixed —getPropertyValue()
private
getPropertyValue(mixed $data, mixed $propertyPath) : mixed
Parameters
- $data : mixed
- $propertyPath : mixed