/trunk/jrest/services/InventoryExport.php |
---|
79,7 → 79,7 |
$i=1; |
foreach ($observations as &$obs) { |
$obs = $this->denullifierTableauValeurCel(&$obs); |
$obs = $this->denullifierTableauValeurCel($obs); |
$ids_obs[] = $obs['id_observation']; |
$indices_lignes_obs[$obs['id_observation']] = $i; |
/trunk/jrest/services/InventoryObservationList.php |
---|
61,7 → 61,7 |
$debut = $taille_page*$numero_page ; |
$retour = $chercheur_observations->rechercherObservations($uid[0], $criteres, $debut, $taille_page); |
$retour_formate = $chercheur_observations->formaterPourEnvoiCel(&$retour); |
$retour_formate = $chercheur_observations->formaterPourEnvoiCel($retour); |
$this->envoyerJson($retour_formate); |
return true; |
/trunk/jrest/services/InventoryImageList.php |
---|
50,7 → 50,7 |
$debut = $taille_page*$numero_page ; |
$retour = $chercheur_images->rechercherImagesEtObservationAssociees($uid[0], $criteres, $debut, $taille_page); |
$retour = $chercheur_images->formaterPourEnvoiCel(&$retour); |
$retour = $chercheur_images->formaterPourEnvoiCel($retour); |
$retour_encode = json_encode($retour) ; |
$retour_encode = $this->nettoyerCaracteresNuls($retour_encode); |
/trunk/jrest/services/Inventory.php |
---|
48,7 → 48,7 |
$observation = $retour_recherche[0]; |
} |
$observation = $this->formaterObservationVersTableauSequentiel(&$observation); |
$observation = $this->formaterObservationVersTableauSequentiel($observation); |
$output = json_encode($observation); |
$this->envoyerJson($output); |
55,7 → 55,7 |
return true; |
} |
private function formaterObservationVersTableauSequentiel($observation) { |
private function formaterObservationVersTableauSequentiel(&$observation) { |
if ($observation['date_observation']!="0000-00-00 00:00:00") { |
list($year,$month,$day)= explode('-',$observation['date_observation']); |