dert
This commit is contained in:
@@ -981,4 +981,14 @@ class Police extends Modele {
|
||||
|
||||
return $liste->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function get_limite_consommation_police($idPolice)
|
||||
{
|
||||
$sql = 'SELECT fn_limite_consommation_police(?) AS limite_consommation';
|
||||
$resultat = $this->executerRequete($sql, array($idPolice));
|
||||
|
||||
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
return $ligne['limite_consommation'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user