college_temp = new College_temp(); } public function index() { $idCollege = $_SESSION['idCollege']; $college= $this->college_temp->getCollegepoliceId($idCollege); $prestatairereseaus= $this->college_temp->getprestatairereseautm($idCollege); $prestatairetms= $this->college_temp->getprestatairetm($idCollege); $this->genererVueAjax(array('college' => $college, 'prestatairereseaus' => $prestatairereseaus, 'prestatairetms' => $prestatairetms)); } public function majtm() { $idPrestation = $this->requete->getParametre("idPrestation"); $tm = $this->requete->getParametreFormulaire("tm"); $this->college_temp->majtmprestatairetm($idPrestation, $tm); $this->executerAction("index"); } public function retirer() { $idPrestation = $this->requete->getParametre("idPrestation"); $this->college_temp->retirerprestatairetm($idPrestation); $this->executerAction("index"); } public function ajouterunprestatairetm() { $codePrestataire = $this->requete->getParametre("codePrestataire"); $this->college_temp->ajouterunprestatairetm($codePrestataire); $this->executerAction("index"); } public function initprestation() { $idCollegeTemp = $_SESSION['idCollegeTemp']; $this->college_temp->initPrestationCollege($idCollegeTemp); } }