Advertisement
michaelrio

dbinputabsensi

Jan 28th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Bagus Anggoro
  5. * Date: 7/29/2017
  6. * Time: 2:54 PM
  7. */
  8.  
  9. namespace db;
  10.  
  11. include "configs/konekdatamobile.php";
  12. include "configs/konekhomobile.php";
  13.  
  14.  
  15.  
  16.  
  17. class dbinputabsensi
  18. {
  19.  
  20.  
  21. private function konekData(){
  22. $mobileQuery = new \configs\konekdatamobile();
  23. return $mobileQuery;
  24. }
  25.  
  26. private function konekDataHO(){
  27. $mobileQuery1 = new \configs\konekhomobile();
  28. return $mobileQuery1;
  29. }
  30.  
  31.  
  32. public function setInputAbsensi($name, $phone, $address, $pic, $posisi, $latit, $longi, $sales, $distric, $province, $images){
  33.  
  34. $sql = "call traces3.ws_input_customer('$name', '$phone', '$address', '$pic', '$posisi', '$latit', '$longi', '$sales', '$distric', '$province', '$images')";
  35.  
  36. $dataQuery = $this->konekData()->getDataQueryMobile($sql);
  37.  
  38. $dataFetchArray = $this->konekData()->getFetchArrayMobile($dataQuery);
  39.  
  40. return $dataFetchArray;
  41. }
  42.  
  43. /* public function setInputAbsensiHO($usrid1, $mobileid1, $absensimodeid1, $latitude1, $longitude1){
  44.  
  45. $sql = "EXEC ws_Input_Absensi '$usrid1', '$mobileid1', '$absensimodeid1', '$latitude1', '$longitude1'";
  46.  
  47. $dataQuery = $this->konekDataHO()->getDataQuery($sql);
  48.  
  49. $dataFetchArray = $this->konekDataHO()->getFetchArray($dataQuery);
  50.  
  51. return $dataFetchArray;
  52. }
  53.  
  54. public function setInputAbsensiHONasional($usrid1, $mobileid1, $absensimodeid1, $latitude2, $longitude2){
  55.  
  56. $sql = "EXEC ws_Input_Absensi_Nasional '$usrid1', '$mobileid1', '$absensimodeid1', '$latitude2', '$longitude2'";
  57.  
  58. $dataQuery = $this->konekDataHO()->getDataQuery($sql);
  59.  
  60. $dataFetchArray = $this->konekDataHO()->getFetchArray($dataQuery);
  61.  
  62. return $dataFetchArray;
  63. }*/
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement