summaryrefslogtreecommitdiff
path: root/src/model/Clients.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2023-07-22 12:29:47 +0200
committerpolo <ordipolo@gmx.fr>2023-07-22 12:29:47 +0200
commit747674b450d6840ce9bd9aecd765cf31445ef8d3 (patch)
tree46e47fd65c751e1951d9aa8438aea1b8c2d8aece /src/model/Clients.php
parent9bdfb5196a2ee1cbfc403702e8d2ef88076d366f (diff)
downloadAppliGestionPHP-747674b450d6840ce9bd9aecd765cf31445ef8d3.zip
navigation entre sections, boucle principale, client ou prospect
Diffstat (limited to 'src/model/Clients.php')
-rw-r--r--src/model/Clients.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/model/Clients.php b/src/model/Clients.php
index d9dd28d..f36acc1 100644
--- a/src/model/Clients.php
+++ b/src/model/Clients.php
@@ -13,6 +13,7 @@ class Clients extends Model
13 protected $telephone; 13 protected $telephone;
14 protected $courriel; 14 protected $courriel;
15 protected $apropos; 15 protected $apropos;
16 protected $type = 'prospect';
16 17
17 //~ use ModelChildren; 18 //~ use ModelChildren;
18 19
@@ -81,6 +82,11 @@ class Clients extends Model
81 $this->apropos = (string) $value; 82 $this->apropos = (string) $value;
82 return $this; 83 return $this;
83 } 84 }
85 public function setType($value)
86 {
87 $this->type = (string) $value;
88 return $this;
89 }
84 90
85 91
86 public function findByKeywords(array $keywords, string $field): array // n'hydrate pas les variables, on doit choisir un client et hydrater ensuite 92 public function findByKeywords(array $keywords, string $field): array // n'hydrate pas les variables, on doit choisir un client et hydrater ensuite