/[openfoncier]/trunk/tests/sig_elyx_test.php
ViewVC logotype

Diff of /trunk/tests/sig_elyx_test.php

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

revision 2811 by vpihour, Tue Mar 4 10:12:50 2014 UTC revision 2812 by softime, Wed Mar 12 14:37:20 2014 UTC
# Line 73  class SigElyxTest { Line 73  class SigElyxTest {
73       */       */
74      public function getContrainteNRU($object = NULL){      public function getContrainteNRU($object = NULL){
75                    
76          //On récupère des contraintes sur un DI          //
77          if ( $object->wType == "1" ) {          $ret = array(
78              $ret = array(              "return" => array(
79                  "return" => array(                  array(
80                      "groupe"=> "ZONES DU PLU",                      "groupe"=> "ZONES DU PLU",
81                      "idContrainte"=> "6",                      "idContrainte"=> "6",
82                      "libelle"=> "Une contrainte du PLU",                      "libelle"=> "Une contrainte du PLU",
83                      "ssgroupe"=> "protection",                      "ssgroupe"=> "protection",
84                  ),                  ),
85              );                  array(
86          }                      "groupe"=> "ZONES DU PLU",
87          //On synchronise les contraintes                      "idContrainte"=> "26",
88          elseif ($object->wType == "2" ) {                      "libelle"=> "Une seconde contrainte du PLU",
89              $ret = array(                      "ssgroupe"=> "protection",
                 "return" => array(  
                     array(  
                         "groupe"=> "ZONES DU PLU",  
                         "idContrainte"=> "6",  
                         "libelle"=> "Une contrainte du PLU",  
                         "ssgroupe"=> "protection",  
                     ),  
                     array(  
                         "groupe"=> "ZONES DU PLU",  
                         "idContrainte"=> "26",  
                         "libelle"=> "Une seconde contrainte du PLU",  
                         "ssgroupe"=> "protection",  
                     )  
90                  )                  )
91              );              )
92          }          );
93                            
94          return $ret;          return $ret;
95      }      }

Legend:
Removed from v.2811  
changed lines
  Added in v.2812

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26