summaryrefslogtreecommitdiff
path: root/src/model/Prestations.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-06-02 23:19:01 +0200
committerpolo <ordipolo@gmx.fr>2024-06-02 23:19:01 +0200
commit546302cde914a2143f86e6a384cbc5085d55396a (patch)
treeb6e059ed2e7689c29c06d7c92c0d4f30aa9b5022 /src/model/Prestations.php
parent46591fffb0226b0fa87e68248b06182389825f80 (diff)
downloadAppliGestionPHP-546302cde914a2143f86e6a384cbc5085d55396a.zip
méthode cleanSpecialChars() pour gérer les ", un peu sale
Diffstat (limited to 'src/model/Prestations.php')
-rw-r--r--src/model/Prestations.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/Prestations.php b/src/model/Prestations.php
index 8591e83..88eb4f0 100644
--- a/src/model/Prestations.php
+++ b/src/model/Prestations.php
@@ -70,6 +70,7 @@ class Prestations extends Model
70 } 70 }
71 public function set(string $entry, string $input) 71 public function set(string $entry, string $input)
72 { 72 {
73 $input = $this->cleanSpecialChars($input); // possibilité que $input devienne une chaine vide
73 switch($entry) 74 switch($entry)
74 { 75 {
75 case "Numéro prestation:": 76 case "Numéro prestation:":
@@ -134,7 +135,7 @@ class Prestations extends Model
134 } 135 }
135 public function setCommentaires(string $value) 136 public function setCommentaires(string $value)
136 { 137 {
137 $this->commentaires = $value; 138 $this->commentaires = $this->cleanSpecialChars($value); // possibilité que $this->commentaires devienne une chaine vide
138 return $this; 139 return $this;
139 } 140 }
140 public function setNumeroPresta($value) 141 public function setNumeroPresta($value)