예제 #1
0
 /**
  * Method to du data dump only
  * @param    AbstractDB  $db                 db identifier
  * @param    appname						 application name
  * @param    myurl
  * @param    backupPath						 backup file storage location
  */
 function dataOnly(&$db, $appname = "eHMIS Backup", $myurl = "http://localhost", $backupPath)
 {
     //write the file headers
     $writefile = Exporter::sqlfileHeaders($appname, $myurl);
     //put in a sql comment to start the table data
     $writefile .= "-- Table data... \n\n";
     //set the data variable to null
     $dataArray = null;
     //get the data
     $dataArray = Exporter::getDBDataDump($db, ANYDB_DUMP_SQL);
     $writefile .= Exporter::writeData($dataArray);
     Exporter::writeSQL($backupPath, $writefile);
 }