예제 #1
0
 /**
  * The method which will be called from  outside for creating the DBF and FPT (if required) files.
  */
 function writedata()
 {
     try {
         $this->getData();
         WriteLog::writeDebugLog("Start writing the DBF file at location " . $this->filename);
         if ($this->memodata) {
             $this->write($this->filename, $this->schema, $this->result, $this->memodata, $this->memodata);
         } else {
             $this->write($this->filename, $this->schema, $this->result);
         }
         WriteLog::writeDebugLog("Completed writing the DBF file at location " . $this->filename);
     } catch (Exception $exp) {
         WriteLog::writeErrorLog("Error when writing the DBF file " . $exp->getTraceAsString());
     }
 }
예제 #2
0
파일: SQL.php 프로젝트: Apoooorv/DBFProject
 function closeConnection($connection)
 {
     if (isset($this->connection)) {
         WriteLog::writeDebugLog("Close Connection");
         mysql_close($this->connection);
     }
 }