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'); |