From 9d8133643773912d54fb0c7d86ef04e6acffa8c9 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 25 Feb 2023 02:27:22 +0100 Subject: =?UTF-8?q?lire=20tables,=20modifications=20BDD,=20cr=C3=A9ation?= =?UTF-8?q?=20documents=20et=20enveloppes=20latex,=20suppression=20de=20tr?= =?UTF-8?q?aits.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/Prestations.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/model/Prestations.php') diff --git a/src/model/Prestations.php b/src/model/Prestations.php index 2f84daa..ddd785b 100644 --- a/src/model/Prestations.php +++ b/src/model/Prestations.php @@ -6,20 +6,18 @@ class Prestations extends Model // lecture des données ou hydratation protected $ID; // auto-incrémentée protected $ID_client = 0; - //~ protected $combientieme_fois = 0; protected $code_presta = ''; protected $date = 0; // timestamp unix protected $type_presta = ''; protected $mode_paiement = ''; protected $commentaires = ''; - use ModelChildren; + //~ use ModelChildren; public function __construct(int $ID_client) { - $this->table = 'prestations'; $this->ID_client = $ID_client; - //~ $this->combientiemeFois(); + $this->table = strtolower(__CLASS__); // prestations } // getters @@ -31,10 +29,10 @@ class Prestations extends Model { return $this->ID_client; } - //~ public function getCombientiemeFois(): int - //~ { - //~ return $this->combientieme_fois; - //~ } + public function getCodePresta(): string + { + return $this->code_presta; + } public function getDate(): int { return $this->date; -- cgit v1.2.3