/**
  * export gallery settings to downloadable file
  */
 public function exportSettings()
 {
     $this->validateInited();
     $galleryID = $this->id;
     $record = $this->db->fetchSingle(GlobalsUG::$table_galleries, "id={$galleryID}");
     UniteFunctionsUG::validateNotEmpty($record, "Gallery Record");
     unset($record["id"]);
     $strRecord = serialize($record);
     $filename = "unitegallery_" . $record["alias"] . ".txt";
     UniteFunctionsUG::downloadFileFromContent($strRecord, $filename);
     //the download content should exit
     UniteFunctionsUG::throwError("Something wrong witht the export, please try again");
     exit;
 }