/**
  * Rebuild every demo file
  */
 public function rebuild(ctImport $xmlImporter, ctNHP_Options $options)
 {
     //echo ctImport::getThemeOptionsPath();exit;
     //theme options
     if (file_put_contents(ctImport::getThemeOptionsPath(), $options->export()) === false) {
         throw new Exception("Cannot save file to: " . ctImport::getThemeOptionsPath());
     }
     $this->export(self::EXPORT_FILE);
     error_reporting(E_ERROR);
     require_once ABSPATH . 'wp-admin/includes/export.php';
     flush();
     ob_start();
     export_wp(array('content' => 'all'));
     $xml = ob_get_contents();
     ob_end_clean();
     file_put_contents(ctImport::getXmlPath(), $xml);
 }