From 1894fc377e6b938ea34df9980567a1634ec6ef48 Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 28 Dec 2022 05:19:55 +0100 Subject: =?UTF-8?q?r=C3=A9organisation=20+=20bient=C3=B4t=20finie=20la=20s?= =?UTF-8?q?ection=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/traits.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/model/traits.php') diff --git a/src/model/traits.php b/src/model/traits.php index 43d9b7f..3d446c1 100644 --- a/src/model/traits.php +++ b/src/model/traits.php @@ -3,14 +3,14 @@ trait ModelChildren // pour ne pas toucher au constructeur de la classe Model { - public function __construct() - { - $this->table = strtolower(__CLASS__); - } + //~ public function __construct() + //~ { + //~ $this->table = strtolower(__CLASS__); + //~ } - public function setIdFromLastInsertID() // à faire juste après l'écriture d'une nouvelle entrée - { - $this->db = parent::getInstance(); - $this->ID = $this->db->lastInsertId(); // méthode de PDO - } + //~ public function setIdFromLastInsertID() // à faire juste après l'écriture d'une nouvelle entrée + //~ { + //~ $this->db = parent::getInstance(); + //~ $this->ID = $this->db->lastInsertId(); // méthode de PDO + //~ } } -- cgit v1.2.3