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/Clients.php | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'src/model/Clients.php') diff --git a/src/model/Clients.php b/src/model/Clients.php index 9661562..d841451 100644 --- a/src/model/Clients.php +++ b/src/model/Clients.php @@ -8,23 +8,19 @@ class Clients extends Model protected $prenom_nom; protected $code_client; protected $adresse; + protected $code_postal; + protected $ville; protected $telephone; protected $courriel; - protected $commentaires; + protected $apropos; - use ModelChildren; // pour hydrateFromForm() + //~ use ModelChildren; public function __construct() { - $this->table = 'clients'; // à mettre dans ModelChildren + $this->table = strtolower(__CLASS__); // clients } - //~ public function set(string $variable, $value) - //~ { - //~ $this->$variable = $value; - //~ return($this); - //~ } - // getters public function getID(): int { @@ -36,8 +32,6 @@ class Clients extends Model } // setters - //~ public function setID() -> dans le trait ModelChildren - public function setPrenomNom($value) { $this->prenom_nom = (string) $value; @@ -53,6 +47,17 @@ class Clients extends Model $this->adresse = (string) $value; return($this); } + public function setCodePostal($value) + { + $this->code_postal = (string) $value; + return($this); + } + public function setVille($value) + { + $this->ville = (string) $value; + return($this); + } + public function setTelephone($value) // chaine parce que zenity renvoie une chaine et parce qu'on garde le 0 au début { if(is_numeric($value)) @@ -71,9 +76,9 @@ class Clients extends Model $this->courriel = (string) $value; return($this); } - public function setCommentaires($value) + public function setApropos($value) { - $this->commentaires = (string) $value; + $this->apropos = (string) $value; return($this); } -- cgit v1.2.3