public function validate()
 {
     if ($this->get_kode_fakul() == 0) {
         $this->_error .= "Fakultas belum dipilih!</br>";
         $this->_valid = FALSE;
     }
     if ($this->get_nama() == "" or !Validasi::validate_string($this->get_nama())) {
         $this->_error .= "Nama Fakultas belum diinput!</br>";
         $this->_valid = FALSE;
     }
     if ($this->get_alamat() == "") {
         $this->_error .= "Alamat belum diinput!</br>";
         $this->_valid = FALSE;
     }
     if ($this->get_telepon() == "" or !Validasi::validate_number($this->get_telepon())) {
         $this->_error .= "Telepon belum diinput!</br>";
         $this->_valid = FALSE;
     }
     if ($this->get_kode_strata() == 0) {
         $this->_error .= "Strata belum dipilih!</br>";
         $this->_valid = FALSE;
     }
     if ($this->get_pic() == "") {
         $this->_error .= "PIC jurusan belum diinput!</br>";
         $this->_valid = FALSE;
     }
     if ($this->get_telp_pic() == "" or !Validasi::validate_number($this->get_telepon())) {
         $this->_error .= "telepon PIC belum diinput!</br>";
         $this->_valid = FALSE;
     }
 }
 public function validate()
 {
     if ($this->get_kode_univ() == 0) {
         $this->_error .= "Universitas belum dipilih!</br>";
         $this->_valid = FALSE;
     }
     if ($this->get_nama() == "" or !Validasi::validate_string($this->get_nama())) {
         $this->_error .= "Nama Fakultas belum diinput!</br>";
         $this->_valid = FALSE;
     }
     if ($this->get_alamat() == "") {
         $this->_error .= "Alamat belum diinput!</br>";
         $this->_valid = FALSE;
     }
     if ($this->get_telepon() == "" or !Validasi::validate_number($this->get_telepon())) {
         $this->_error .= "Telepon belum diinput!</br>";
         $this->_valid = FALSE;
     }
 }
 public function validate(UniversitasDao $univ)
 {
     if ($univ->get_pic() == 0) {
         $this->_error .= "User belum dipilih!</br>";
         $this->_valid = FALSE;
     }
     if ($univ->get_kode() == "") {
         $this->_error .= "Nama singkat Perguruan Tinggi belum diinput!<?br>";
         $this->_valid = FALSE;
     }
     if ($univ->get_nama() == "" or !Validasi::validate_string($univ->get_nama())) {
         $this->_error .= "Nama Perguruan Tinggi belum diinput!</br>";
         $this->_valid = FALSE;
     }
     if ($univ->get_alamat() == "") {
         $this->_error .= "Alamat belum diinput!</br>";
         $this->_valid = FALSE;
     }
     if ($univ->get_telepon() == "" or !Validasi::validate_number($univ->get_telepon())) {
         $this->_error .= "Telepon belum diinput!</br>";
         $this->_valid = FALSE;
     }
     if ($univ->get_lokasi() == "" or !Validasi::validate_string($univ->get_lokasi())) {
         $this->_error .= "Lokasi belum diinput!</br>";
         $this->_valid = FALSE;
     }
 }