From 9c9cda0ac823863c6760d77984ea2ecaf87c52ab Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 16 Jul 2024 05:04:13 +0200 Subject: =?UTF-8?q?renommage=20complet=20des=20ID=20en=20id:=20variables,?= =?UTF-8?q?=20m=C3=A9thodes,=20BDD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/Clients.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/model/Clients.php') diff --git a/src/model/Clients.php b/src/model/Clients.php index ce38d86..32cf0c5 100644 --- a/src/model/Clients.php +++ b/src/model/Clients.php @@ -4,7 +4,7 @@ class Clients extends Model { // lecture des données ou hydratation - protected $ID; // auto-incrémentée + protected $id; // auto-incrémentée protected $prenom_nom; protected $code_client; protected $adresse; @@ -21,9 +21,9 @@ class Clients extends Model } // getters - public function getID(): int + public function getId(): int { - return $this->ID; + return $this->id; } public function getCodeClient(): string { @@ -152,7 +152,7 @@ class Clients extends Model $already_exist = false; for($j = 0; $j < count($result); $j++) // pour chaque tableau déjà enregistré dans le tableau $result { - if($result[$j]['ID'] === $one_array['ID']) + if($result[$j]['id'] === $one_array['id']) { $already_exist = true; } -- cgit v1.2.3