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 |
} |
} |