From 6f4cc3afffde36a13618458ffda72e6104624f36 Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 30 Aug 2023 12:20:39 +0200 Subject: =?UTF-8?q?section=20client=20=C3=A0=20part,=20section=20modif=20e?= =?UTF-8?q?n=20cours,=20bug=20dans=20Dates,?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/CESU.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/model/CESU.php') 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 //~ const TABLE = 'cesu'; // lecture des données ou hydratation + protected $ID; protected $ID_presta; protected $taches; protected $duree_travail; protected $salaire; - //~ use ModelChildren; - public function __construct() { $this->table = strtolower(__CLASS__); // cesu } + public function getAllWithWindowFields(): array // différent de Model::getAll() qui retourne get_object_vars($this) + { + return [ + "Numéro CESU:" => $this->ID, + "Tâche effectuée:" => $this->taches, + "Durée du travail:" => $this->duree_travail, + "Salaire:" => $this->salaire]; + } + // setters public function setIDPresta(int $value) { -- cgit v1.2.3