diff options
| author | polo <ordipolo@gmx.fr> | 2023-02-25 02:27:22 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2023-02-25 02:27:22 +0100 |
| commit | 9d8133643773912d54fb0c7d86ef04e6acffa8c9 (patch) | |
| tree | 8048a9eeded086e9e9c00ce0a68b9454c171d085 /src/model/Prestations.php | |
| parent | 209c0b93c529356a094d7133a717e8f6ee6d90c6 (diff) | |
| download | AppliGestionPHP-9d8133643773912d54fb0c7d86ef04e6acffa8c9.tar.gz AppliGestionPHP-9d8133643773912d54fb0c7d86ef04e6acffa8c9.tar.bz2 AppliGestionPHP-9d8133643773912d54fb0c7d86ef04e6acffa8c9.zip | |
lire tables, modifications BDD, création documents et enveloppes latex, suppression de traits.php
Diffstat (limited to 'src/model/Prestations.php')
| -rw-r--r-- | src/model/Prestations.php | 14 |
1 files changed, 6 insertions, 8 deletions
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 | |||
| 6 | // lecture des données ou hydratation | 6 | // lecture des données ou hydratation |
| 7 | protected $ID; // auto-incrémentée | 7 | protected $ID; // auto-incrémentée |
| 8 | protected $ID_client = 0; | 8 | protected $ID_client = 0; |
| 9 | //~ protected $combientieme_fois = 0; | ||
| 10 | protected $code_presta = ''; | 9 | protected $code_presta = ''; |
| 11 | protected $date = 0; // timestamp unix | 10 | protected $date = 0; // timestamp unix |
| 12 | protected $type_presta = ''; | 11 | protected $type_presta = ''; |
| 13 | protected $mode_paiement = ''; | 12 | protected $mode_paiement = ''; |
| 14 | protected $commentaires = ''; | 13 | protected $commentaires = ''; |
| 15 | 14 | ||
| 16 | use ModelChildren; | 15 | //~ use ModelChildren; |
| 17 | 16 | ||
| 18 | public function __construct(int $ID_client) | 17 | public function __construct(int $ID_client) |
| 19 | { | 18 | { |
| 20 | $this->table = 'prestations'; | ||
| 21 | $this->ID_client = $ID_client; | 19 | $this->ID_client = $ID_client; |
| 22 | //~ $this->combientiemeFois(); | 20 | $this->table = strtolower(__CLASS__); // prestations |
| 23 | } | 21 | } |
| 24 | 22 | ||
| 25 | // getters | 23 | // getters |
| @@ -31,10 +29,10 @@ class Prestations extends Model | |||
| 31 | { | 29 | { |
| 32 | return $this->ID_client; | 30 | return $this->ID_client; |
| 33 | } | 31 | } |
| 34 | //~ public function getCombientiemeFois(): int | 32 | public function getCodePresta(): string |
| 35 | //~ { | 33 | { |
| 36 | //~ return $this->combientieme_fois; | 34 | return $this->code_presta; |
| 37 | //~ } | 35 | } |
| 38 | public function getDate(): int | 36 | public function getDate(): int |
| 39 | { | 37 | { |
| 40 | return $this->date; | 38 | return $this->date; |
