<?php
class AppMahasiswa extends Database{
   protected $mSqlFile= 'module/pembuatan_nim/business/appmahasiswa.sql.php';
   function __construct($connectionNumber=0) {
      parent::__construct($connectionNumber);
      #
   }
//=========Get===========

   function GetDataMahasiswaById($idMhs){
      $result=$this->Open($this->mSqlQueries['get_data_mahasiswa_by_id'],array($idMhs));
      #print($this->GetLastError());
      return $result;
   }
   
   function getMhsNamaById($mhsId){
   		$result = $this->Open($this->mSqlQueries['get_mhs_nama_by_id'],array($mhsId));		
		return $result[0]['NAMA'];		
   }
   
   function GetDataOrtuById($idMhs){
      $result=$this->Open($this->mSqlQueries['get_data_ortu_by_id'],array($idMhs));
      #print($this->GetLastError());
      return $result;
   }
   
   function GetDataMhsRegById($idMhs){
      $result=$this->Open($this->mSqlQueries['get_data_mahasiswa_registrasi_by_id'],array($idMhs));
      #print($this->GetLastError());
      return $result;
   }
   
   //-- get data mhs status bayar dr admisi --//
   function GetDataStatusBayarById($idMhs){
      $result=$this->Open($this->mSqlQueries['get_data_status_bayar_by_id'],array($idMhs));
      #print($this->GetLastError());
      return $result;
   }
   
//===============do==============

}
?>