production/Modele/Reponseententeprealable.php
2026-06-16 10:53:22 +00:00

36 lines
910 B
PHP
Executable File

<?php
require_once 'Framework/Modele.php';
class Reponseententeprealable extends Modele {
public function getListe() {
if (est_anglophone())
{
$sql = 'SELECT codeReponseEntentePrealable as `code`, libelleEng as libelle FROM p_reponseententeprealable order by 1';
}
else
{
$sql = 'SELECT codeReponseEntentePrealable as `code`, libelle FROM p_reponseententeprealable order by 1';
}
$liste = $this->executerRequete($sql);
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);
}
}