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

Diff of /trunk/services/metier/dossierautorisationmanager.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 521 by mlimic, Wed Oct 17 16:22:13 2012 UTC revision 522 by mlimic, Thu Oct 18 16:37:15 2012 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3    /*
4     * Processes requests received via net which concern dossier d'instruction
5     * or dossier d'autorisation.
6     *
7     * @author Mirna Limic <[email protected]>
8     * Date: 18/10/2012
9     *
10     * Follow-up:
11     * Bugs:
12     */
13    
14  require_once ("./metier/metiermanager.php");  require_once ("./metier/metiermanager.php");
15    
16  class DossierAutorisationManager extends MetierManager {  class DossierAutorisationManager extends MetierManager {
17    
18            
19            /*
20         * Constructor.
21         *
22         * Calls it's parent constructor to establish a DB connection.
23         */
24      function __construct() {      function __construct() {
25          parent::__construct();          parent::__construct();
26      }      }
27            
28        
29        /*
30         * Destructor
31         *
32         * Call's its parent's destructor.
33         */
34      function __destruct() {      function __destruct() {
35          parent::__destruct();          parent::__destruct();
36      }      }
37    
38            
39        /*
40         * Called when the ERP services assign a building number.
41         *
42         * @param mixed $data The array containing building number.
43         * @param string $id The ID of the dossier.
44         * @return bool 'OK'
45         */
46      function set_ERP_building_number($data, $id) {      function set_ERP_building_number($data, $id) {
47          return $this->OK;          return $this->OK;
48      }      }
49            
50            
51        /*
52         * Called when the ERP services sign the opening of a building
53         * that is classified as ERP building.
54         *
55         * @param mixed $data The array containing building number.
56         * @param string $id The ID of the dossier.
57         * @return bool 'OK'
58         */    
59      function order_ERP_signed($data, $id) {      function order_ERP_signed($data, $id) {
60          // verify data          // verify data
61          /*          /*
# Line 30  class DossierAutorisationManager extends Line 67  class DossierAutorisationManager extends
67          return $this->OK;          return $this->OK;
68      }      }
69            
70        
71        /*
72         * Called when the ERP services would like to obtain information
73         * on a dossier.
74         *
75         * @param string $id The ID of the dossier.
76         * @return bool 'OK'
77         */        
78      function consultation_dossier($id) {      function consultation_dossier($id) {
79          return $this->OK;          return $this->OK;
80      }      }
81            
82            /*
83         * Called by ERP services to indicate its decision on the order
84         * for a dossier which is classified as ERP.
85         *
86         * @param mixed $data The array containing building number.
87         * @param string $id The ID of the dossier.
88         * @return bool 'OK'
89         */    
90      function decision_order_ERP($data, $id) {      function decision_order_ERP($data, $id) {
91          return $this->OK;          return $this->OK;
92      }      }
93            
94            
95        /*
96         * Returns the array representation of a dosier.
97         *
98         * A call to this function needs to be preceeded by a call to
99         * the function $this->consultation_dossier()
100         * @param mixed $data The array containing building number.
101         * @return mixed TBD
102         */        
103      function getDossierArrayRepresentation() {      function getDossierArrayRepresentation() {
104          return array("data");          return array("data");
105      }      }

Legend:
Removed from v.521  
changed lines
  Added in v.522

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26