diff options
author | polo <ordipolo@gmx.fr> | 2023-08-30 12:20:39 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2023-08-30 12:20:39 +0200 |
commit | 6f4cc3afffde36a13618458ffda72e6104624f36 (patch) | |
tree | fbf77181dee390e048bc5fa340ca60bd078ab22b /src/model/CESU.php | |
parent | 747674b450d6840ce9bd9aecd765cf31445ef8d3 (diff) | |
download | AppliGestionPHP-6f4cc3afffde36a13618458ffda72e6104624f36.zip |
section client à part, section modif en cours, bug dans Dates,
Diffstat (limited to 'src/model/CESU.php')
-rw-r--r-- | src/model/CESU.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/model/CESU.php b/src/model/CESU.php index dbb4023..a8aa1e8 100644 --- a/src/model/CESU.php +++ b/src/model/CESU.php | |||
@@ -6,18 +6,26 @@ class CESU extends Model | |||
6 | //~ const TABLE = 'cesu'; | 6 | //~ const TABLE = 'cesu'; |
7 | 7 | ||
8 | // lecture des données ou hydratation | 8 | // lecture des données ou hydratation |
9 | protected $ID; | ||
9 | protected $ID_presta; | 10 | protected $ID_presta; |
10 | protected $taches; | 11 | protected $taches; |
11 | protected $duree_travail; | 12 | protected $duree_travail; |
12 | protected $salaire; | 13 | protected $salaire; |
13 | 14 | ||
14 | //~ use ModelChildren; | ||
15 | |||
16 | public function __construct() | 15 | public function __construct() |
17 | { | 16 | { |
18 | $this->table = strtolower(__CLASS__); // cesu | 17 | $this->table = strtolower(__CLASS__); // cesu |
19 | } | 18 | } |
20 | 19 | ||
20 | public function getAllWithWindowFields(): array // différent de Model::getAll() qui retourne get_object_vars($this) | ||
21 | { | ||
22 | return [ | ||
23 | "Numéro CESU:" => $this->ID, | ||
24 | "Tâche effectuée:" => $this->taches, | ||
25 | "Durée du travail:" => $this->duree_travail, | ||
26 | "Salaire:" => $this->salaire]; | ||
27 | } | ||
28 | |||
21 | // setters | 29 | // setters |
22 | public function setIDPresta(int $value) | 30 | public function setIDPresta(int $value) |
23 | { | 31 | { |