public function Save(WQDFile $wqdFile, $filePath) { $SQL = self::$INSERT; $WDD = WQDDataDataStore::getInstance(); $wqdataArr = array(); $conn = self::$db->getConnection(); $stmt = $conn->prepare($SQL); $stmt->bindValue(':date', $wqdFile->getFiledate()); $stmt->bindValue(':name', $wqdFile->getName()); $stmt->bindValue(':folderseq', $wqdFile->getFolderSeq()); $stmt->bindValue(':locationseq', $wqdFile->getLocationSeq()); try { $stmt->execute(); $err = $stmt->errorInfo(); $wqdataArr = $wqdFile->getData(); $seq = self::$db->getLastInsertedId(); $WDD->SaveFileData($wqdataArr, $seq); } catch (Exception $e) { return $e->getMessage(); } $error = $stmt->errorInfo(); }