/** * Creates shalow copy of recordset containing only headers * * @return Gpf_Data_RecordSet */ public function toShalowRecordSet() { $copy = new Gpf_Data_RecordSet(); $copy->setHeader($this->_header->toArray()); return $copy; }
private function getHeaders(Gpf_Data_RecordHeader $header) { $headers = $header->toArray(); $output = array(); foreach ($headers as $item) { if ($item != 'code' && $item != 'depth') { $output[] = $item; } } return $output; }