71,6 → 71,19 |
$this->parametres = $_GET; |
} |
|
private function convertirParametresEnChaineRequeteService() { |
$requete = ''; |
$mapping = $this->config['mapping_masque']; |
if(!empty($this->parametres)) { |
foreach ($this->parametres as $parametre=>$valeur) { |
if (isset($mapping[$parametre])) { |
$requete .= '&'.$mapping[$parametre].'='.urlencode($valeur); |
} |
} |
} |
return $requete; |
} |
|
private function convertirParametresEnChaineRequete() { |
$requete = str_replace('masque_','masque.',http_build_query($this->parametres)); |
if(!empty($this->parametres)) { |
80,7 → 93,7 |
} |
|
private function obtenirIdsObservation() { |
$ids = json_decode(file_get_contents($this->del_url_service_tpl.'observations?retour.format=widget'.$this->convertirParametresEnChaineRequete()), true); |
$ids = json_decode(file_get_contents($this->del_url_service_tpl.'observations?retour.format=widget'.$this->convertirParametresEnChaineRequeteService()), true); |
if($this->id_observation == null) { |
$this->id_observation = $ids['resultats'][0]; |
} |