police = new Police(); } public function index() { $idCollegePolice = $this->requete->getParametreFormulaire("idCollegePolice"); $idPolice = $_SESSION['idPolice_C']; $collegesPolice = $this->police->getListeCollegePolice($idPolice); $garanties_out = $this->police->getgarantieout($idCollegePolice); $garanties_in = $this->police->getgarantiein($idCollegePolice); $_SESSION["idCollegePolice"] = $idCollegePolice; $nombreGarantie = $this->police->getNombreGarantie(); $this->genererVueAjax(array( 'garanties_out' => $garanties_out, 'collegesPolice' => $collegesPolice, 'garanties_in' => $garanties_in, 'nombreGarantie' => $nombreGarantie )); } public function incorporer() { $idCollegePolice = $this->requete->getParametreFormulaire("idCollegePolice"); $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); $this->police->incorporergarantie($idCollegePolice, $codeGarantie); } public function annuler() { $idGarantie = $this->requete->getParametreFormulaire("idGarantie"); $this->police->annulergarantie($idGarantie); } public function enregistrer() { $idPolice = $_SESSION['idPolice_C']; $this->police->enregistrerincorporationgarantie($idPolice); } }