diff --git a/Modele/Reponseententeprealable.php b/Modele/Reponseententeprealable.php index 6abc34fa..cfd835a5 100755 --- a/Modele/Reponseententeprealable.php +++ b/Modele/Reponseententeprealable.php @@ -17,4 +17,20 @@ class Reponseententeprealable extends Modele { return $liste->fetchAll(PDO::FETCH_ASSOC); } + + public function getTypeDemande() { + if (est_anglophone()) + { + $sql = 'SELECT codeTypeDemande as `code`, libelleEng as libelle FROM typedemande order by 1'; + } + else + { + $sql = 'SELECT codeTypeDemande as `code`, libelle FROM typedemande order by 1'; + } + + $liste = $this->executerRequete($sql); + + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + } \ No newline at end of file