/** * Tests if the visitor is connected and shows the form of modification for a training manager or a student. **/ public function controlProfilInformations() { $pageView = new PageView(); $result = 0; if (isset($_SESSION['infoUser']) && $_SESSION['infoUser']['user_type'] == 'RF') { $accountmodel = new AccountModel(); $result = $accountmodel->nbDocuments(); $pageView->showProfilInformations($_SESSION, true, $result); } else { $pageView->showProfilInformations($_SESSION, false, $result); } }