<?php

class AppJenisSmtaToSia extends Database {

   protected $mSqlFile= 'module/jenis_smta/business/appjenissmtatosia.sql.php';
   
   function __construct($connectionNumber=1) {
      parent::__construct($connectionNumber);
      
   }
//===GET==

//===DO==
   
   function DoAddJenisSmtaToSia($idJenisSmta, $jenisSmta,$status) {

      $result = $this->Execute($this->mSqlQueries['do_add_jenis_smta_to_sia'], array($idJenisSmta, $jenisSmta,$status));
      //print ($this->GetLastError());exit;
      return $result;
   }
   
   function DoUpdateJenisSmtaSia($jenisSmta, $idJenisSmta,$status) {
      $result = $this->Execute($this->mSqlQueries['do_update_jenis_smta_sia'], array($jenisSmta, $idJenisSmta,$status));
      return $result;
   }
   
   function DoDeleteJenisSmtaSiaById($idJenisSmta) {
      $result=$this->Execute($this->mSqlQueries['do_delete_jenis_smta_sia_by_id'], array($idJenisSmta));
      //print ($this->GetLastError());exit;
      return $result;
   }

   function DoDeleteJenisSmtaSiaByArrayId($arrIdJenisSmta) {
      $idJenisSmta = implode("', '", $arrIdJenisSmta);
      $result=$this->Execute($this->mSqlQueries['do_delete_jenis_smta_sia_by_array_id'], array($idJenisSmta));
      return $result;
   }
}
?>
