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 ++-- src/model/Prestations.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/model') 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; } diff --git a/src/model/Prestations.php b/src/model/Prestations.php index e9ba7a1..54ad4b7 100644 --- a/src/model/Prestations.php +++ b/src/model/Prestations.php @@ -59,7 +59,7 @@ class Prestations extends Model "Numéro prestation:" => end($code_presta_tableau), // dernière case "Date:" => $Date->getDate(), //"Type de Presta:" => $this->type_presta, // choix impossible pour le moment - "Mode de paiement:" => $this->mode_paiement, + "Mode de paiement:" => $this->mode_paiement, // non pertinent pour un devis "Commentaires:" => $this->commentaires]; } public function set(string $entry, string $input) -- cgit v1.2.3