mediatekformation

CheckboxListMapper
in package
implements DataMapperInterface

Maps choices to/from checkbox forms.

A implementation is used to find the corresponding string values for the choices. Each checkbox form whose "value" option corresponds to any of the selected values is marked as selected.

Tags
author

Bernhard Schussek bschussek@gmail.com

Interfaces, Classes, Traits and Enums

DataMapperInterface

Table of Contents

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.

Methods

mapDataToForms()

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

public mapDataToForms(mixed $choices, mixed $checkboxes) : mixed
Parameters
$choices : mixed
$checkboxes : mixed
Return values
mixed

mapFormsToData()

Maps the model data of a list of children forms into the view data of their parent.

public mapFormsToData(mixed $checkboxes, mixed &$choices) : mixed
Parameters
$checkboxes : mixed
$choices : mixed
Return values
mixed

Search results