Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 300 → Rev 301

/trunk/metier/api_0.1/NomsVernaculaires.php
13,7 → 13,7
* @version $Id$
*/
class NomsVernaculaires extends Eflore {
 
public function getRechercheComplete($num_tax) {
$tpl = Config::get('nomsVernaRechercheCompleteTpl');
$params = array('valeur' => $num_tax, 'projet' => 'nvjfl');
20,7 → 20,7
$url = $this->formaterUrl($tpl, $params);
return $this->chargerDonnees($url);
}
 
public function getRechercheEtendue($nom, $type_resultat = '') {
$methode = 'getUrlRecherche'.$type_resultat;
if (method_exists($this, $methode)) {
31,12 → 31,12
}
return $this->chargerDonnees($url);
}
 
public function getRechercheFloue($nom, $type_resultat = '') {
$url = $this->getUrlRecherche($nom, 'floue');
return $this->chargerDonnees($url);
}
 
private function getUrlRecherche($nom, $typeRech) {
$tpl = Config::get('nomsVernaRechercheTpl');
$params = array('valeur' => $nom, 'type' => $typeRech, 'langue' => 'fra');
43,7 → 43,7
$url = $this->formaterUrl($tpl, $params);
return $url;
}
 
private function getUrlRechercheDetermination($nom, $typeRech) {
$tpl = Config::get('nomsVernaRechercheDeterminationTpl');
$params = array('valeur' => $nom, 'type' => $typeRech, 'langue' => 'fra');