PropertyPathMapper::mapDataToForms()

mapDataToForms(mixed $data, FormInterface[] $forms) Maps properties of some data to a list of forms. Parameters mixed $data Structured data. FormInterface[] $forms A list of {@link FormInterface} instances. Exceptions UnexpectedTypeException if the type of the data parameter is not supported.

PropertyPathMapper::mapFormsToData()

mapFormsToData(FormInterface[] $forms, mixed $data) Maps the data of a list of forms into the properties of some data. Parameters FormInterface[] $forms A list of {@link FormInterface} instances. mixed $data Structured data. Exceptions UnexpectedTypeException if the type of the data parameter is not supported.

PropertyPathMapper

class PropertyPathMapper implements DataMapperInterface Maps arrays/objects to/from forms using property paths. Methods __construct(PropertyAccessorInterface $propertyAccessor = null) Creates a new property path mapper. mapDataToForms(mixed $data, FormInterface[] $forms) Maps properties of some data to a list of forms. mapFormsToData(FormInterface[] $forms, mixed $data) Maps the data of a list of forms into the properties of some data. Details _

PropertyTypeExtractorInterface

interface PropertyTypeExtractorInterface Type Extractor Interface. Methods Type[]|null getTypes(string $class, string $property, array $context = array()) Gets types of a property. Details Type[]|null getTypes(string $class, string $property, array $context = array()) Gets types of a property. Parameters string $class string $property array $context Return Value Type[]|null

PropertyPathIterator::isIndex()

bool isIndex() Returns whether the current element in the property path is an array index. Return Value bool

PropertyPathIteratorInterface

interface PropertyPathIteratorInterface implements Iterator, SeekableIterator Methods bool isIndex() Returns whether the current element in the property path is an array index. bool isProperty() Returns whether the current element in the property path is a property name. Details bool isIndex() Returns whether the current element in the property path is an array index. Return Value bool bool isProperty()

PropertyPathIterator::isProperty()

bool isProperty() Returns whether the current element in the property path is a property name. Return Value bool

PropertyPathIteratorInterface::isIndex()

bool isIndex() Returns whether the current element in the property path is an array index. Return Value bool

PropertyPathIteratorInterface::isProperty()

bool isProperty() Returns whether the current element in the property path is a property name. Return Value bool

PropertyPathInterface::getLength()

int getLength() Returns the length of the property path, i.e. the number of elements. Return Value int The path length