Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3227 Rev 3232
Line 186... Line 186...
186
 
186
 
187
	public function effectuerRequeteInfosComplementairesSurNumNom($num_nom, $ref = NULL) {
187
	public function effectuerRequeteInfosComplementairesSurNumNom($num_nom, $ref = NULL) {
188
		if($ref && isset($this->config['eflore']['api_host'])) {
188
		if($ref && isset($this->config['eflore']['api_host'])) {
189
			if(self::DEBUG) error_log("CEL fetch: " .$this->config['eflore']['api_host'] . '/');
189
			if(self::DEBUG) error_log("CEL fetch: " .$this->config['eflore']['api_host'] . '/');
190
			return @json_decode(file_get_contents($this->config['eflore']['api_host'] . '/' .
190
			return @json_decode(file_get_contents($this->config['eflore']['api_host'] . '/' .
191
			$ref . '/' .
191
			$this->code_referentiel . '/' .
192
			'noms' . '/' .
192
			'noms' . '/' .
193
			$num_nom .
193
			$num_nom .
194
			'?retour.champs=' . implode(',', array('nom_sci,auteur',
194
			'?retour.champs=' . implode(',', array('nom_sci,auteur',
195
			'id',
195
			'id',
Line 279... Line 279...
279
				$retour = $resultat->resultat;
279
				$retour = $resultat->resultat;
280
			}
280
			}
281
		}
281
		}
282
		return $retour;
282
		return $retour;
283
	}
283
	}
284
}
-
 
285
284
}
-
 
285