/** * 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()); } }
function closeConnection($connection) { if (isset($this->connection)) { WriteLog::writeDebugLog("Close Connection"); mysql_close($this->connection); } }