/[openfoncier]/trunk/services/metier/consultationmanager.php
ViewVC logotype

Contents of /trunk/services/metier/consultationmanager.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 523 - (show annotations)
Fri Oct 19 11:59:44 2012 UTC (12 years, 3 months ago) by mlimic
File size: 1211 byte(s)
comments, correction of a bug when checking the validity of the format of incomming requests, creation of function used for sending, tests OK
1 <?php
2
3 /*
4 * Processes requests received via services which concern consultations (by
5 * ERP or other services).
6 *
7 * @author Mirna Limic <[email protected]>
8 * Date: 18/10/2012
9 *
10 * Follow-up:
11 * Bugs:
12 */
13
14
15 require_once ("./metier/metiermanager.php");
16
17 class ConsultationManager extends MetierManager {
18
19
20 /*
21 * Constructor.
22 *
23 * Calls it's parent constructor to establish a DB connection.
24 */
25 function __construct() {
26 parent::__construct();
27 }
28
29
30 /*
31 * Destructor
32 *
33 * Call's its parent's destructor.
34 */
35 function __destruct() {
36 parent::__destruct();
37 }
38
39
40 /*
41 * Called when one of the external services sends its recommendation
42 * as a responde to a demand issued by openfoncier.
43 * @param mixed $data The array containing building number.
44 * @param string $id The ID of the dossier.
45 * @return bool 'OK'
46 */
47 function recommendation($data, $id) {
48 /*
49 $date = $this->contents['date_retour'];
50
51 if (!$this->dateValid($date)) {
52 return $this->sendHttpCode(400, "Bad date.");
53 }
54 */
55 return $this->OK;
56 }
57
58 }
59
60 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26