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/CESU.php | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'src/model/CESU.php') diff --git a/src/model/CESU.php b/src/model/CESU.php index 2be89c0..8771607 100644 --- a/src/model/CESU.php +++ b/src/model/CESU.php @@ -6,30 +6,24 @@ class CESU extends Model //~ const TABLE = 'cesu'; // lecture des données ou hydratation - private $ID_cesu; - private $taches; - private $duree_travail; - private $salaire; + protected $ID_presta; + protected $taches; + protected $duree_travail; + protected $salaire; - use ModelChildren; + //~ use ModelChildren; - public function __construct(int $client_ID) + public function __construct() { - parent::__construct($client_ID); - $this->type == 'cesu'; + $this->table = strtolower(__CLASS__); // cesu } // setters - public function setIDCesu(int $value) + public function setIDPresta(int $value) { - $this->ID_cesu = $value; + $this->ID_presta = $value; return($this); } - //~ public function setIDPresta(int $value) - //~ { - //~ $this->ID_presta = $value; - //~ return($this); - //~ } public function setTaches(string $value) { $this->taches = $value; @@ -40,9 +34,10 @@ class CESU extends Model $this->duree_travail = $value; return($this); } - public function setSalaire(float $value) + public function setSalaire($value) { - $this->salaire = $value; + $value = str_replace(',', '.', $value); + $this->salaire = (float) $value; return($this); } } -- cgit v1.2.3