Ejemplo n.º 1
0
 public function actionDel()
 {
     $Doctor = new Doctor();
     $Doctor->set_prop_from_arr($_REQUEST);
     $Doctor->hosp_id = $this->_user['hosp_id'];
     $ar['get'] = $Doctor->del();
     Core::encode_echo($ar);
 }
Ejemplo n.º 2
0
 public function actionLogin()
 {
     $t = \Yii::$app->request->post('t');
     $ar = [];
     $ar['t'] = $t;
     if ($t == 'adm') {
         $Adm = new Adm();
         $Adm->set_prop_from_arr($_REQUEST);
         $Adm->login();
     }
     if ($t == 'doctor') {
         $Doctor = new Doctor();
         $Doctor->set_prop_from_arr($_REQUEST);
         $Doctor->login();
     }
     Core::encode_echo($ar);
 }
Ejemplo n.º 3
0
 public function actionDoctorDel()
 {
     $Doctor = new Doctor();
     $Doctor->set_prop_from_arr($_REQUEST);
     $ar['get'] = $Doctor->del();
     Core::encode_echo($ar);
 }