From 78439b6a178e238ab8fb73d25567a85df78d6681 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 3 Sep 2023 02:45:17 +0200 Subject: section 3 prestas non vendues --- src/model/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/model/Model.php') diff --git a/src/model/Model.php b/src/model/Model.php index 4c4a80c..07826af 100644 --- a/src/model/Model.php +++ b/src/model/Model.php @@ -183,7 +183,7 @@ abstract class Model extends DB return($this->execQuery('SELECT * FROM ' . $this->table)->fetchAll()); // fonctionne aussi sans le point virgule dans le SQL!! } - public function findById() // obtenir une entrée avec son ID + public function findById() // obtenir une entrée grace à son ID { return($this->execQuery('SELECT * FROM ' . $this->table . ' WHERE id = ' . $this->ID)->fetch()); } @@ -191,7 +191,7 @@ abstract class Model extends DB { if($this->table == 'prestations') { - // à l'occaz, rendre abstraite la classe Prestations + // à l'occaz, créer une classe NonVendue et rendre Prestations abstraite echo 'erreur: ne pas appeler Model::getDetailsByIdPresta() si la table ciblée est "prestations".'; return 0; } -- cgit v1.2.3