Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 283 → Rev 284

/trunk/metier/api_0.1/NomsVernaculaires.php
14,6 → 14,12
*/
class NomsVernaculaires extends Eflore {
public function getRechercheComplete($num_tax) {
$tpl = Config::get('nomsVernaRechercheCompleteTpl');
$params = array('valeur' => $num_tax, 'projet' => 'nvjfl');
$url = $this->formaterUrl($tpl, $params);
return $this->chargerDonnees($url);
}
public function getRechercheEtendue($nom, $type_resultat = '') {
$methode = 'getUrlRecherche'.$type_resultat;
34,10 → 40,7
private function getUrlRecherche($nom, $typeRech) {
$tpl = Config::get('nomsVernaRechercheTpl');
$params = array('valeur' => $nom, 'type' => $typeRech, 'langue' => 'fra');
Debug::printr($params,'Params');
$url = $this->formaterUrl($tpl, $params);
Debug::printr($tpl,'TPL');
Debug::printr($url,'URL');
return $url;
}
44,10 → 47,7
private function getUrlRechercheDetermination($nom, $typeRech) {
$tpl = Config::get('nomsVernaRechercheDeterminationTpl');
$params = array('valeur' => $nom, 'type' => $typeRech, 'langue' => 'fra');
Debug::printr($params,'Params');
$url = $this->formaterUrl($tpl, $params);
Debug::printr($tpl,'TPL');
Debug::printr($url,'URL');
return $url;
}
}