Esempio n. 1
0
 function createFile($info, $records, $ftype, $page)
 {
     if ($ftype == "csv") {
         $tempfile = exportForm::writeCSV($info, $records, $page);
     } elseif ($ftype == "plain") {
         $tempfile = exportForm::writePlain($info, $records, $page);
     } elseif ($ftype == "tab") {
         $tempfile = exportForm::writeTab($info, $records, $page);
     } elseif ($ftype == "xml") {
         $tempfile = exportForm::writeXML($info, $records, $page);
     }
     return $tempfile;
 }