public function Init(ISC_ADMIN_EXPORTMETHOD $exportmethod, $templateid, $where, $vendorid) { parent::Init($exportmethod, $templateid, $where, $vendorid); if ($this->fields['customerAddresses']['used']) { for ($x = 0; $x < $this->maxaddr; $x++) { foreach ($this->fields['customerAddresses']['fields'] as $id => $field) { if ($field['used']) { $this->addr_cache[$x][$id . $x] = ""; } } } } $this->headers = $this->GetHeaders(true); }