-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.php
More file actions
718 lines (611 loc) · 28.4 KB
/
controller.php
File metadata and controls
718 lines (611 loc) · 28.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
<?php
require_once('modal.php');
class users_controller {
public function add_user($nom ,$prenom,$email,$password,$phone,$wilaya,$commune,$adresse){
$mp = new projet_modal();
$ac = new adresse_controller();
$idWilaya = $ac->getWilayaID($wilaya);
$idCommune = $ac->getCommuneID($idWilaya, $commune);
$r = $mp->addUser($nom ,$prenom,$email,$password,$phone,$idWilaya,$idCommune,$adresse);
return $r;
}
public function add_faxes($faxes, $userID){
$mp = new projet_modal();
$r = $mp->addFaxes($faxes, $userID);
}
public function find_user($email, $password){
$mp = new projet_modal();
$r = $mp->findUser($email, $password);
return $r;
}
public function getName($userId){
$mp = new projet_modal();
$r = $mp->getName($userId);
$result = $r->fetch_assoc(); // fetch it first
return $result;
}
public function getPhoto($userId){
$mp = new projet_modal();
$r = $mp->getPhoto($userId);
$result = $r->fetch_assoc(); // fetch it first
return $result['Image'];
}
public function addImage($userId, $image){
$mp = new projet_modal();
$r = $mp->addPhoto($userId, $image);
return $r;
}
public function updateInfo($userId, $nom, $prenom, $email, $pass, $phone, $wilaya, $commune, $adresse){
$mp = new projet_modal();
$ac = new adresse_controller();
$idWilaya = $ac->getWilayaID($wilaya);
$idCommune = $ac->getCommuneID($idWilaya, $commune);
$r = $mp->updateInfo($userId, $nom, $prenom, $email, $pass, $phone, $idWilaya, $idCommune, $adresse);
return $r;
}
public function getUserData($userId){
$mp = new projet_modal();
$r = $mp->getUserData($userId);
$result = $r->fetch_assoc(); // fetch it first
return $result;
}
}
class traductor_controller {
public function add_langues($langues, $userID){
$mp = new projet_modal();
$lc = new langues_controller();
$arrlength = count($langues);
for($x = 0; $x < $arrlength; $x++) {
$languesID[$x] = $lc->get_langueId($langues[$x]);
}
$r = $mp->addLangues($languesID, $userID);
}
public function add_Data($traductorId, $cv, $assermentation){
$mp = new projet_modal();
$r = $mp->addData($traductorId, $cv, $assermentation);
}
public function add_References($idUser, $references){
$mp = new projet_modal();
$r = $mp->addReferences($idUser, $references);
}
public function add_Types($idUser, $types){
$mp = new projet_modal();
$r = $mp->addTypes($idUser, $types);
}
public function getTraductor_Asserm_Type_Lang($asser, $langues, $type){
$mp = new projet_modal();
$r = $mp->getTraductor_Ass_Type_Lng($asser, $langues, $type);
return $r;
}
public function getTraductor_Nom_Asserm_Type_Lang($nom, $asser, $langues, $type){
$mp = new projet_modal();
$r = $mp->getTraductor_Nom_Asserm_Type_Lang($nom, $asser, $langues, $type);
return $r;
}
public function getNote($idUser){
$mp = new projet_modal();
$r = $mp->getNote($idUser);
return $r;
}
public function isTraductor($idUser){
$mp = new projet_modal();
$r = $mp->isTraductor($idUser);
$result = $r->fetch_assoc(); // fetch it first
return $result['result'];
}
public function getTypes($idUser){
$mp = new projet_modal();
$r = $mp->getTypes($idUser);
return $r;
}
public function getTraductorData($idUser){
$mp = new projet_modal();
$r = $mp->getTraductorData($idUser);
$result = $r->fetch_assoc();
return $result;
}
}
class NotificationController{
public function getNotifications($userID){
$this->getDemandeTNotifications($userID);
$this->getDemandeDNotifications($userID);
$this->getDemandeTANotifications($userID);
$this->getDemandeDANotifications($userID);
$this->getDemandeTPNotifications($userID);
$this->getDemandeDPNotifications($userID);
$this->getDemandeTDNotifications($userID);
$this->getDemandeDDNotifications($userID);
$this->getDemandeTFNotifications($userID);
$this->getDemandeDFNotifications($userID);
}
// notification demande de traduction
public function getDemandeTNotifications($userID){
$mp = new projet_modal();
//lorsque le traducteur recoit une nouvelle demande de traduction:traducteur
$r = $mp->getDemandeTNotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request demandeTraduction" id="demandeTraduction'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-success" data-toggle="modal" data-target="#modal_complete_demandeTr">Accepter</button>
<button class="btn btn-danger">Refuser</button>
</div>
Vous avez une nouvelle <a href="#" class="link_demande">demande de traduction</a>
</td>
</tr>';
}
}
// notification demande de devis
public function getDemandeDNotifications($userID){
$mp = new projet_modal();
//lorsque le traducteur recoit une demande de devis:traducteur
$r = $mp->getDemandeDNotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request demandeDevis" id="demandeDevis'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-success" data-toggle="modal" data-target="#modal_complete_demandeDv">Accepter</button>
<button class="btn btn-danger">Refuser</button>
</div>
Vous avez une nouvelle <a href="#" class="link_demande">demande de devis</a>
</td>
</tr>';
}
}
// notification demande de traduction acceptée
public function getDemandeTANotifications($userID){
$mp = new projet_modal();
//lorsque le traducteur accepte le demande:client
$r = $mp->getDemandeTANotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request acceptedTraduction" id="acceptedDemandeTraduction'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary" data-toggle="modal" data-target="#modal_complete_paiementTr">Payer</button>
</div>
Votre <a href="#" class="link_demande">demande de traduction</a> a ete acceptée par <a href="public_traducteur.php?id='.$lg['TraducteurId'].'" class="link_traductor">traducteur</a>
<br/>
Voici le Prix demandé :<b> '.$lg["Prix"].' </b>DZ
</td>
</tr>';
}
}
// notification demande de devis acceptée
public function getDemandeDANotifications($userID){
$mp = new projet_modal();
//lorsque le traducteur accepte le demande:client
$r = $mp->getDemandeDANotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request acceptedDevis" id="acceptedDemandeDevis'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary" data-toggle="modal" data-target="#modal_complete_paiementDv">Payer</button>
</div>
Votre <a href="#" class="link_demande">demande de devis</a> a ete acceptée par <a href="public_traducteur.php?id='.$lg['TraducteurId'].'" class="link_traductor">traducteur</a>
<br/>
Voici le Prix demandé :<b> '.$lg["Prix"].' </b>DZ
</td>
</tr>';
}
}
// notification demande de traduction paiement
public function getDemandeTPNotifications($userID){
$mp = new projet_modal();
//lorsque le paiement a ete accepté:client
$r = $mp->getDemandeTPANotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request acceptedPaiementTr" id="acceptedPaiementTr'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary">Valider</button>
</div>
Votre paiement de <a href="#" class="link_demande">demande de traduction</a> a ete accepté par l\'administrateur
</td>
</tr>';
}
//lorsque le paiement n'a pas ete accepté:client
$r = $mp->getDemandeTPDNotifications($userID);
foreach($r as $lg){
echo '<tr class="bad_request deniedPaiementTr" id="deniedPaiementTr'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary" data-toggle="modal" data-target="#modal_complete_paiementTr">Payer a nouveau</button>
</div>
Votre paiement de <a href="#" class="link_demande">demande de traduction</a> a ete refusé par l\'administrateur
</td>
</tr>';
}
//lorsque le paiement a ete recu:traducteur
$r = $mp->getDemandeTPRNotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request receivedMTr" id="recievedPaiementTr'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary">Debuter la traduction</button>
</div>
Votre paiement a ete effectué de la <a href="#" class="link_demande">demande de traduction</a>
</td>
</tr>';
}
}
// notification demande de devis paiement
public function getDemandeDPNotifications($userID){
$mp = new projet_modal();
//lorsque le paiement a ete accepté:client
$r = $mp->getDemandeDPANotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request acceptedPaiementDev" id="acceptedPaiementDev'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary">Valider</button>
</div>
Votre paiement de <a href="#" class="link_demande">demande de devis</a> a ete accepté par l\'administrateur
</td>
</tr>';
}
//lorsque le paiement n'a pas ete accepté:client
$r = $mp->getDemandeDPDNotifications($userID);
foreach($r as $lg){
echo '<tr class="bad_request deniedPaiementDev" id="deniedPaiementDv'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary" data-toggle="modal" data-target="#modal_complete_paiementDv">Payer a nouveau</button>
</div>
Votre paiement de <a href="#" class="link_demande">demande de devis</a> a ete refusé par l\'administrateur
</td>
</tr>';
}
//lorsque le paiement a ete recu:traducteur
$r = $mp->getDemandeDPRNotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request receivedMTDv" id="recievedPaiementDv'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary">Debuter la traduction</button>
</div>
Votre paiement a ete effectué de <a href="#" class="link_demande">demande de devis</a>
</td>
</tr>';
}
}
// notification de traduction debutée
public function getDemandeTDNotifications($userID){
$mp = new projet_modal();
//lorsque la traduction a debutée:client
$r = $mp->getDemandeTDNotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request beganTraduction" id="beganTraduction'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary">Valider</button>
</div>
La traduction de la <a href="#" class="link_demande">demande de traduction</a> a debutée
</td>
</tr>';
}
}
// notification de devis débutée
public function getDemandeDDNotifications($userID){
$mp = new projet_modal();
//lorsque le devis a debutée:client
$r = $mp->getDemandeDDNotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request beganDevis" id="beganDevis'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary">Valider</button>
</div>
Le traitement de vote <a href="#" class="link_demande">demande de devis</a> a debutée
</td>
</tr>';
}
}
// notification de traduction debutée
public function getDemandeTDTraductoNotifications($userID){
$mp = new projet_modal();
//lorsque la traduction a debutée:client
$r = $mp->getDemandeTDTraductorNotifications($userID);
foreach($r as $lg){
echo '<tr class="onWorking beganTraduction" id="beganTraduction'.$lg["DemandeId"].'">
<td>
Le traitement de cette <a href="#" class="link_demande">demande de traduction</a> est en cours
</td>
</tr>';
}
}
// notification de devis débutée
public function getDemandeDDTraductorNotifications($userID){
$mp = new projet_modal();
//lorsque le devis a debutée:client
$r = $mp->getDemandeDDTraductorNotifications($userID);
foreach($r as $lg){
echo '<tr class="onWorking beganDevis" id="beganDevis'.$lg["DemandeId"].'">
<td>
Le traitement de cette <a href="#" class="link_demande">demande de devis</a> est en cours
</td>
</tr>';
}
}
// notification de traduction finie
public function getDemandeTFNotifications($userID){
$mp = new projet_modal();
//lorsque le traducteur fini la traduction:client
$r = $mp->getDemandeTFNotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request finishedTraduction" id="finishedTraduction'.$lg["DemandeId"].'">
<td>
<div>
<div class="float-right">
<button class="btn btn-warning" data-toggle="modal" data-target="#modal_note">Valider</button>
</div>
Votre traduction de <a href="#" class="link_demande">demande de traduction</a> a finie
</div>
<a class="btn btn-info mt-2" href="./uploads/Output/'.$lg['Document'].'">Telecharger le document traduit</a>
</td>
</tr>';
}
//lorsque le client valide la traduction:traducteur
$r = $mp->getDemandeTFANotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request accedptedTraduction" id="acceptedFinishedTraduction'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-warning">Valider</button>
</div>
Votre traduction de <a href="#" class="link_demande">demande de traduction</a> a été accepté par le client
</td>
</tr>';
//pour notifier le traducteur que le montant a été payé
echo '<tr class="good_request paimentRecievedTraduction" id="paimentRecievedTraduction'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-warning">Valider</button>
</div>
Vous avez recu le paiement pour cette <a href="#" class="link_demande">demande de traduction</a>
</td>
</tr>';
}
//lorsque le client refuse la traduction:traducteur
$r = $mp->getDemandeTFDNotifications($userID);
foreach($r as $lg){
echo '<tr class="bad_request deniedTraduction" id="deniedFinishedTraduction'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-secondary">Envoyer a nouveau</button>
</div>
Votre traduction de <a href="#" class="link_demande">demande de traduction</a> a été rejeté par le client
</td>
</tr>';
}
}
// notification de devis finie
public function getDemandeDFNotifications($userID){
$mp = new projet_modal();
//lorsque le traducteur fini le devis:client
$r = $mp->getDemandeDFCNotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request finishedDevis" id="finishedDevis'.$lg["DemandeId"].'">
<td>
<div>
<div class="float-right">
<button class="btn btn-secondary" data-toggle="modal" data-target="#modal_note">Valider</button>
</div>
Votre Devis a finie suite a <a href="#" class="link_demande">cette demande</a>
</div>
<a class="btn btn-info mt-2" href="./uploads/Output/'.$lg['Document'].'">Telecharger le document traduit</a>
</td>
</tr>';
}
//lors de la reception du paiement:traducteur
$r = $mp->getDemandeDFTNotifications($userID);
foreach($r as $lg){
echo '<tr class="good_request paimentRecievedDevis" id="paimentRecievedDevis'.$lg["DemandeId"].'">
<td>
<div class="float-right">
<button class="btn btn-warning">Valider</button>
</div>
Vous avez recu le paiement pour cette <a href="#" class="link_demande">demande de devis</a>
</td>
</tr>';
}
}
}
class NotificationInterractionController{
public function acceptDemande($idDemande, $traductorId, $table, $prix){
$mp = new projet_modal();
if (strcmp($table, "traduction") == 0){
$r = $mp->acceptDemandeTraduction($idDemande, $traductorId, $prix);
}else{
$r = $mp->acceptDemandeDevis($idDemande, $traductorId, $prix);
}
return $r;
}
public function seeDemande($idDemande, $table, $file){
$mp = new projet_modal();
if (strcmp($table, "traduction") == 0){
$r = $mp->seeDemandeTraduction($idDemande, $file);
}else{
$r = $mp->seeDemandeDevis($idDemande, $file);
}
return $r;
}
public function seePaiementClient($idDemande, $table){
$mp = new projet_modal();
if (strcmp($table, "traduction") == 0){
$r = $mp->seePaiementClientTraduction($idDemande);
}else{
$r = $mp->seePaiementClientDevis($idDemande);
}
return $r;
}
public function startWork($idDemande, $table){
$mp = new projet_modal();
if (strcmp($table, "traduction") == 0){
$r = $mp->startWorkTraduction($idDemande);
}else{
$r = $mp->startWorkDevis($idDemande);
}
return $r;
}
public function seeStart($idDemande, $table){
$mp = new projet_modal();
if (strcmp($table, "traduction") == 0){
$r = $mp->seeStartTraduction($idDemande);
}else{
$r = $mp->seeStartDevis($idDemande);
}
return $r;
}
public function seeAccepted($idDemande, $table){
$mp = new projet_modal();
if (strcmp($table, "traduction") == 0){
$r = $mp->seeAcceptedTraduction($idDemande);
}else{
$r = $mp->seeAcceptedDevis($idDemande);
}
return $r;
}
}
class demande_traduction_controller{
public function addDemande($Userid, $nom, $prenom, $email, $adresse, $wilaya, $commune, $phone, $langueO, $langueD, $type, $comment, $assermente, $file, $typeDemande){
$mp = new projet_modal();
$r = $mp->insertTraductionDemande($Userid, $nom, $prenom, $email, $adresse, $wilaya, $commune, $phone, $langueO, $langueD, $type, $comment, $assermente, $file, $typeDemande);
return $r;
}
public function addRecevoirDemandeT($demandeId, $TraductorId, $typeDemande){
$mp = new projet_modal();
$r = $mp->addRecevoirDemandeT($demandeId, $TraductorId, $typeDemande);
return $r;
}
}
class langues_controller {
public function get_langues(){
$mp = new projet_modal();
$r = $mp->getLangues();
return $r;
}
public function get_langueId($langue){
$mp = new projet_modal();
$r = $mp->getLangueId($langue);
$idLangue = $r->fetch_assoc(); // fetch it first
return $idLangue['Id'];
}
}
class adresse_controller {
public function get_wilayas(){
$mp = new projet_modal();
$r = $mp->getWilayas();
return $r;
}
public function get_commune($wilaya){
$mp = new projet_modal();
$r = $mp->getCommunes($wilaya);
return $r;
}
public function getWilayaID($wilaya){
$mp = new projet_modal();
$r = $mp->getWilayaID($wilaya);
$idWilaya = $r->fetch_assoc(); // fetch it first
return $idWilaya['Id'];
}
public function getCommuneID($wilayaId, $commune){
$mp = new projet_modal();
$r = $mp->getCommuneID($wilayaId, $commune);
$idCommune = $r->fetch_assoc(); // fetch it first
return $idCommune['Id'];
}
}
class demandeController {
public function getDemandeInfoFromRecieved($idDemande, $type){
$mp = new projet_modal();
$r = $mp->getDemandeInfoFromRecieved($idDemande, $type);
return $r;
}
public function getDemandeInfoFromAccepted($idDemande, $type){
$mp = new projet_modal();
$r = $mp->getDemandeInfoFromAccepted($idDemande, $type);
return $r;
}
public function getDemandeInfoFromPaiement($idDemande, $type){
$mp = new projet_modal();
$r = $mp->getDemandeInfoFromPaiement($idDemande, $type);
return $r;
}
public function getDemandeInfoFromStarted($idDemande, $type){
$mp = new projet_modal();
$r = $mp->getDemandeInfoFromStarted($idDemande, $type);
return $r;
}
public function getDemandeInfoFromFinished($idDemande, $type){
$mp = new projet_modal();
$r = $mp->getDemandeInfoFromFinished($idDemande, $type);
return $r;
}
}
class ResultController {
public function addFinalFile($idDemande, $type, $file){
$mp = new projet_modal();
$r = $mp->addFinalFile($idDemande, $type, $file);
return $r;
}
public function clientValideFinal($idDemande, $type){
$mp = new projet_modal();
$r = $mp->clientValideFinal($idDemande, $type);
return $r;
}
public function clientDeclineFinal($idDemande, $type){
$mp = new projet_modal();
$r = $mp-clientDeclineFinal($idDemande, $type);
return $r;
}
public function TraductorValideFinal($idDemande, $type){
$mp = new projet_modal();
$r = $mp->TraductorValideFinal($idDemande, $type);
return $r;
}
}
class NoteController{
public function noter($demandeId, $userId, $note, $type){
$mp = new projet_modal();
$r = $mp->noter($demandeId,$userId, $note, $type);
return $r;
}
public function doNotNoter($demandeId, $userId, $type){
$mp = new projet_modal();
$r = $mp->doNotNoter($demandeId,$userId, $type);
return $r;
}
}
class ArticleController{
public function getArticles($start, $nbr){
$mp = new projet_modal();
$r= $mp->getArticles($start, $nbr);
return $r;
}
public function getNbrArticles(){
$mp = new projet_modal();
$r= $mp->getNbrArticles();
$result = $r->fetch_assoc();
return $result["nbr"];
}
}
class HistoryController{
public function getHistoryClient($userID){
$mp = new projet_modal();
$r= $mp->getHistoryClient($userID);
return $r;
}
public function getHistoryTraductor($userID){
$mp = new projet_modal();
$r= $mp->getHistoryTraductor($userID);
return $r;
}
}
class SignalController{
public function signaler($userId, $traductorId, $cause){
$mp = new projet_modal();
$r= $mp->signaler($userId, $traductorId, $cause);
return $r;
}
}
?>