Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 567 | Rev 610 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 567 Rev 606
Line 568... Line 568...
568
		$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
568
		$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
569
		$masque = $this->recupererMasquePrincipal();
569
		$masque = $this->recupererMasquePrincipal();
570
		if (isset($masque)) {
570
		if (isset($masque)) {
571
			$resultat = $this->trierRechercheFloue($this->parametres[$masque[0]], $resultat, $masque[1]);
571
			$resultat = $this->trierRechercheFloue($this->parametres[$masque[0]], $resultat, $masque[1]);
572
		}
572
		}
573
		if (isset($this->masque)) {
573
		$table_retour_json['entete'] = $this->remplirJsonEntete();
574
			$this->table_retour['masque'] = implode('&', $this->masque); 
574
		$table_retour_json['resultat'] = $this->remplirJsonResultat($resultat);		
-
 
575
		return $table_retour_json;
575
		}
576
	}
576
		$this->afficherEnteteResultat('/'.$this->service); //communNomTaxons
-
 
577
		$table_retour_json['entete'] = $this->table_retour;
-
 
-
 
577
	
-
 
578
	
-
 
579
	
-
 
580
 
-
 
581
	
578
		//on remplit la table $table_retour_json['resultat']
582
	public function remplirJsonResultat($resultat) {
579
		$champs = null;
583
		$champs = null;
580
		if (array_key_exists('retour.champs', $this->parametres)) {
584
		if (array_key_exists('retour.champs', $this->parametres)) {
581
			$champs = explode(',', $this->parametres['retour.champs']);
585
			$champs = explode(',', $this->parametres['retour.champs']);
582
		}
586
		}
583
		$resultat_json = null;
587
		$resultat_json = null;
Line 593... Line 597...
593
				$this->ajouterChampsPersonnalises($champs, $reponse_id);
597
				$this->ajouterChampsPersonnalises($champs, $reponse_id);
594
				$retour = array_merge($retour, $this->table_retour);
598
				$retour = array_merge($retour, $this->table_retour);
595
			}
599
			}
596
			$resultat_json[$num] = $retour;
600
			$resultat_json[$num] = $retour;
597
		}
601
		}
598
		$table_retour_json['resultat'] = $resultat_json; 
602
		return  $resultat_json; 
-
 
603
	}
-
 
604
	
-
 
605
	public function remplirJsonEntete() {
-
 
606
		$entete = array();
-
 
607
		if (isset($this->masque)) {
-
 
608
			$this->table_retour['masque'] = implode('&', $this->masque);
-
 
609
		}
-
 
610
		parent::afficherEnteteResultat('/'.$this->service); 
599
		return $table_retour_json;
611
		return  $this->table_retour;
600
	}
612
	}
601
}
613
}
602
?>
614
?>
603
615