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:----qJcWLkQ6V57sIFNeIqcw26InkDDjoiUPgRGcsV7kziebHz5lTqD6NRbTcze7iY+YTyCW3OtDGOsrGdCjEzaaTyMJoLiEyB7TnRe+9z2QqtdHaCOcBlmwuwfAhmpC0DNAm9Zk5lNJEbzr1xNec9Lr63TWkTliYyrsgNGk5u2+xA7ov6fDm1zo/W46j2pi67BoE+9Xr9fje2A5uIBe6/2boKpRXzvjljqKm9mgT/SmZZotveR9fyeaq8smMs5rI5BVn1F5yL/akUiv0D6aIqmemGmT/VXfkczZFE+M0U9IKAw3KDB7AE343Dxif+0sxhqgU8fV9GsPObHoeUCe8I8ZGkg0/QYzXhcgrM4zC0J9Ray8V134bwRFvnpFg4zn+7ZUOmpP9lDQnTKY79SOr2s9C23WYPZ/jIVRihyVrlw8VA/zsSFV+vmOgmllTxDqBuOuiE4Jcy6MXDdCVFG6NFz7drHW/22ovULgPrvsSczsFuIsWzlRxrRH4Rcoz7JRnoIOegpkUS6/tDMYweZPo/XdM7J72+xoNgOwBWf5y4vHWJSj5RnB6FKYPFw+pxQgn+7AxN4B3wHVm4O5L+hpZgVZE1J9rYwA5fUCSka8vSvGI2eyKD8VUN6jhbXnWoOX1rLJa2ukoXQ11KIdJdfbZ/zsg992E1dpyc3KQI+f/iQh0Kg=----ATTACHMENT:----NDIzODE3NjgyMzAwNzA4NCA4OTIxMzI3NjYyNTQ5NiAxMTAwMjEyNzE0NDYxMTU1