toArray() public method

public toArray ( )
Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 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;
 }