Exemplo n.º 1
0
 public function Save(SLM $SLM)
 {
     $SQL = self::$INSERT;
     //if($folder->getSeq() != null && $folder->getSeq()<> "" && $folder->getSeq() > 0){
     // $SQL = self::$UPDATE;
     // }
     $conn = self::$db->getConnection();
     $stmt = $conn->prepare($SQL);
     $stmt->bindValue(':dated', $SLM->getDated());
     $stmt->bindValue(':leq', $SLM->getLEQ());
     $stmt->bindValue(':min', $SLM->getMIN());
     $stmt->bindValue(':max', $SLM->getMAX());
     $stmt->bindValue(':l10', $SLM->getL10());
     $stmt->bindValue(':l50', $SLM->getL50());
     $stmt->bindValue(':l90', $SLM->getL90());
     $stmt->bindValue(':sel', $SLM->getSEL());
     $stmt->bindValue(':crc', $SLM->getCRC());
     $stmt->bindValue(':fileSeq', $SLM->getFileSeq());
     //if($SQL == self::$UPDATE){
     //       $stmt->bindValue(':folderseq',$folder->getSeq());
     //      }
     $stmt->execute();
     //I will be put code here for throw exception and show on the screen
     $error = $stmt->errorInfo();
 }