Subversion Repositories eFlore/Applications.cel

Rev

Rev 2462 | Rev 3227 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2462 Rev 2959
Line 56... Line 56...
56
	public function rechercherGenreEspeceSurPrefixe($genre = null, $espece = null) {
56
	public function rechercherGenreEspeceSurPrefixe($genre = null, $espece = null) {
57
		$liste_genre_espece = array();
57
		$liste_genre_espece = array();
58
		$this->masque_recherche = trim(trim($genre).' '.trim($espece,' *'));
58
		$this->masque_recherche = trim(trim($genre).' '.trim($espece,' *'));
59
		$masque = urlencode($this->masque_recherche);
59
		$masque = urlencode($this->masque_recherche);
60
		if(self::DEBUG) error_log("CEL fetch: " . $this->url_service_nom.'?masque='.$masque.'&recherche=etendue&retour.format=min&navigation.limite=50&ns.structure=au');
60
		if(self::DEBUG) error_log("CEL fetch: " . $this->url_service_nom.'?masque='.$masque.'&recherche=etendue&retour.format=min&navigation.limite=50&ns.structure=au');
61
		$urlService = $this->url_service_nom.'?masque='.$masque.'&recherche=etendue&retour.format=min&navigation.limite=50&ns.structure=au';
61
		$urlService = $this->url_service_nom.'?masque='.$masque.'&recherche=etendue&retour.format=min&navigation.limite=50&ns.structure=au,an';
62
		$requete = @file_get_contents($urlService);
62
		$requete = @file_get_contents($urlService);
63
		if($requete != '') {
63
		if($requete != '') {
64
			$requete = json_decode($requete);
64
			$requete = json_decode($requete);
65
			if(is_object($requete) && isset($requete->resultat)) {
65
			if(is_object($requete) && isset($requete->resultat)) {
66
				foreach ($requete->resultat as $id => $res) {
66
				foreach ($requete->resultat as $id => $res) {