public function toObject() { $response = array(); $response[] = $this->_header->toObject(); foreach ($this->_array as $record) { $response[] = $record->toObject(); } return $response; }
public function toObject() { $this->localizeRecordSet($this->cachedData); $response = new Gpf_Rpc_Object(); $response->rows = $this->cachedData->toObject(); $response->count = (int) $this->size; return $response; }