示例#1
0
 /**
  * Tests if the visitor is connected and if the visitor is a training manager.
  * @return bool
  */
 public function controlGestion()
 {
     $pageView = new PageView();
     $accountmodel = new AccountModel();
     if (isset($_SESSION['infoUser']) && $_SESSION['infoUser']['user_type'] == 'RF') {
         $rf = true;
         $result4 = $accountmodel->getAllInfoUser();
         $pageView->showGestion($rf, null, null, $result4);
     } else {
         $rf = false;
         $result = $accountmodel->getInfoStudent();
         $result2 = $accountmodel->getDescritpionTraining();
         $result4 = $accountmodel->getAllInfoUser();
         $pageView->showGestion($rf, $result, $result2, $result4);
     }
 }