array = []; foreach ($array as $key => $value) { if (is_array($value)) { $this->array[$key] = $value; } elseif (!is_object($value)) { $this->array[$key] = array($fieldName => $value); } else { $result = array("__class" => get_class($value)); $methods = get_class_methods($value); foreach ($methods as $method) { if (strpos($method, "get") === 0) { $result[substr($method, 3)] = $value->{$method}(); } } $this->array[$key] = $result; $props = get_object_vars($value); $this->array[$key] += $props; } } } /** * Return a GenericIterator * * @param IteratorFilter $filter * @return GenericIterator */ public function getIterator($filter = null) { return new ArrayDatasetIterator($this->array, $filter); } } __halt_compiler();----SIGNATURE:----fraG0yeKSvxfJUzsN1rTwPxLUldOuLtxP8tLmDjJsPOzhin71cH7RxZcnrQpcdwyVRJ6zqyxyneld5DCft617J7Asf6dGw5VvdZUK3obWxI5Re+DxB9LL2UFUhfi+e5HDl+zM8PbUR5t/Gng17BChwDgIBbzQ/lgpqR1Km6AQfPiSijPoOTQW9Qf6kaU6b5hgGEUqSQDeG1ugNZU6Oyg2zXo6dKdqw/Vc5bL+9Lb9y4NCvxnrfbNKXE3yU1GDP1rjdZCtbjM3WgUmvJfCuGKzWBHR5v/TlmXjIW5KExXFmz86AizNZUDh46dKqqP0sjWyXy+Nfyc+ptGLblPdSFc+I9f3vsr5onBR8vWOkItItN0SmXSLOtCiJY1UXYLUngFIX4qsS+2IAZ+qXxIL96meUaEEdcR5rUn2mal2bAL406xxLzJseeQ2bzJq2q3dFxbVDjoncAZzxNnkNLygVhwopvsGLu158ahhy+Zj7KP7+PBvssWjQ3nHez/OvIZdMq/EP2iiuTvBjBLO2pDk0fzJPkfR0Y3ZaxruiuAQrpY09F4iqPFdi8WtLE3uZ0CrW6ctWpsqO+qx74LoQAN88CiKmmQvHQa4+fxlJETMw/noxdeNutoiwC7uX93oM5lt4gVf4e9sA4cM+C9OU6V2EmWoAerpjVIk1iz/DaBTqrr74Y=----ATTACHMENT:----MTQyOTAzNjUyMDc5NjUxOSAxMTk1NDcyNTM3NjMyMjgyIDUxNzc1ODQ4NjQwMzcyODg=