Example #1
0
 public function setData(ExportDataInterface $data)
 {
     $this->export_data = $data;
     $data->normalize('');
     return $this;
 }
 public function merge(ExportDataInterface $data, $empty_value)
 {
     // Normalize columns on incoming
     $this->normalize($empty_value);
     $data->normalize($empty_value);
     foreach (array_keys($this->data) as $page_id) {
         foreach ($this->data[$page_id] as $key => $row) {
             $this->data[$page_id][$key] += $row;
         }
     }
     // Normalize result
     $this->normalize($empty_value);
     return $this;
 }