executerRequete($sql); return $liste->fetchAll(PDO::FETCH_ASSOC); } public function getListeSuiteFam($oldcodeEtatPersonne) { $sql = 'SELECT codeEtatPersonne as `code`, etatpossible as libelle FROM vw_suiteetatpersonne where (oldcodeEtatPersonne=?) and (famille="1") order by etatpossible;'; $liste = $this->executerRequete($sql, array($oldcodeEtatPersonne)); return $liste->fetchAll(PDO::FETCH_ASSOC); } public function getListeSuiteDep($oldcodeEtatPersonne) { $sql = 'SELECT codeEtatPersonne as `code`, etatpossible as libelle FROM vw_suiteetatpersonne where (oldcodeEtatPersonne=?) and (dependant="1") order by etatpossible;'; $liste = $this->executerRequete($sql, array($oldcodeEtatPersonne)); return $liste->fetchAll(PDO::FETCH_ASSOC); } }