Documentation

DataMapper
in package
implements DataMapperInterface

Maps arrays/objects to/from forms using data accessors.

Tags
author

Bernhard Schussek bschussek@gmail.com

Table of Contents

Interfaces

DataMapperInterface

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

Methods

mapDataToForms()

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

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

A list of instances

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
Parameters
$forms : Traversable

A list of instances

$data : mixed

        
On this page

Search results