Extbase\Property
Class Tx_Extbase_Property_Mapper
public class Tx_Extbase_Property_Mapper
The Property Mapper maps properties from a source onto a given target object, often a (domain-) model. Which properties are required and how they should be filtered can be customized.
During the mapping process, the property values are validated and the result of this validation can be queried.
The following code would map the property of the source array to the target:
$target = new ArrayObject(); $source = new ArrayObject( array( 'someProperty' => 'SomeValue' ) ); $mapper->mapAndValidate(array('someProperty'), $source, $target);
Now the target object equals the source object.
Package: Extbase
Subpackage: Property
Version: $Id: Mapper.php 1052 2009-08-05 21:51:32Z sebastian $
Subpackage: Property
Version: $Id: Mapper.php 1052 2009-08-05 21:51:32Z sebastian $