diff options
| author | polo <ordipolo@gmx.fr> | 2023-07-22 12:29:47 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2023-07-22 12:29:47 +0200 |
| commit | 747674b450d6840ce9bd9aecd765cf31445ef8d3 (patch) | |
| tree | 46e47fd65c751e1951d9aa8438aea1b8c2d8aece /src/model/Clients.php | |
| parent | 9bdfb5196a2ee1cbfc403702e8d2ef88076d366f (diff) | |
| download | AppliGestionPHP-747674b450d6840ce9bd9aecd765cf31445ef8d3.tar.gz AppliGestionPHP-747674b450d6840ce9bd9aecd765cf31445ef8d3.tar.bz2 AppliGestionPHP-747674b450d6840ce9bd9aecd765cf31445ef8d3.zip | |
navigation entre sections, boucle principale, client ou prospect
Diffstat (limited to 'src/model/Clients.php')
| -rw-r--r-- | src/model/Clients.php | 6 |
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 |
