executerRequete($sql, array($idPolice)); return $colleges->fetchAll(PDO::FETCH_ASSOC); } public function getGarantiesCollegesCP($idPolice) { $sql = 'call sp_garanties_colleges_d_police(?);'; $garantiescolleges = $this->executerRequete($sql, array($idPolice)); return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC); } public function getGarantiesCollegesCpLienParente($idPolice) { // $sql = 'call sp_garanties_colleges_d_police(?);'; $sql = 'call sp_garanties_colleges_d_police_lien_parente(?);'; $garantiescolleges = $this->executerRequete($sql, array($idPolice)); return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC); } public function gettableauPrestationsCP($idPolice) { $sql = 'call sp_tableau_prestation_d_police(?);'; $colleges = $this->executerRequete($sql, array($idPolice)); return $colleges->fetchAll(PDO::FETCH_ASSOC); } public function gettableauPrestationsCpLienParente($idPolice) { // $sql = 'call sp_tableau_prestation_d_police(?);'; $sql = 'call sp_tableau_prestation_d_police_lien_parente(?);'; $colleges = $this->executerRequete($sql, array($idPolice)); return $colleges->fetchAll(PDO::FETCH_ASSOC); } public function getEnteteCP($idPolice) { $sql = 'call sp_entete_devis(?);'; $entete = $this->executerRequete($sql, array($idPolice)); return $entete->fetch(PDO::FETCH_ASSOC); } }