diff --git a/Classes/Utility/ObjectUtility.php b/Classes/Utility/ObjectUtility.php new file mode 100644 index 0000000..ec4496a --- /dev/null +++ b/Classes/Utility/ObjectUtility.php @@ -0,0 +1,30 @@ + + * + ***/ + +/** + * + */ +class ObjectUtility +{ + /** + * fills object from array + * + * @return void + */ + public static function fromArray(&$object, $data) { + foreach ($data as $property => $value) { + $object->_setProperty($property, $value); + } + } +}