mediatekformation

PropertyPathMapper
in package
implements DataMapperInterface

Maps arrays/objects to/from forms using property paths.

Tags
author

Bernhard Schussek bschussek@gmail.com

Interfaces, Classes, Traits and Enums

DataMapperInterface

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

Methods

mapDataToForms()

Maps the view data of a compound form to its children.

public mapDataToForms(mixed $data, mixed $forms) : mixed
Parameters
$data : mixed
$forms : mixed

A list of instances

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
$forms : mixed

A list of instances

$data : mixed
Return values
mixed

getPropertyValue()

private getPropertyValue(mixed $data, mixed $propertyPath) : mixed
Parameters
$data : mixed
$propertyPath : mixed
Return values
mixed

Search results