14,25 → 14,6 |
*/ |
class Noms extends Eflore { |
|
public function getStatsInitialesFamille() { |
$url = $this->getUrlStatsInitiales(180); |
return $this->chargerDonnees($url); |
} |
|
public function getStatsInitialesGenre() { |
$url = $this->getUrlStatsInitiales(220); |
return $this->chargerDonnees($url); |
} |
|
private function getUrlStatsInitiales($rang) { |
$tpl = Config::get('nomsStatsInitialesRangTpl'); |
$projet = Registre::get('parametres.referentiel'); |
Debug::printr($projet); |
$params = array('projet' => $projet, 'rang' => $rang); |
$url = $this->formaterUrl($tpl, $params); |
return $url; |
} |
|
public function getRechercheEtendue($nom) { |
$url = $this->getUrlRecherche($nom, 'etendue'); |
return $this->chargerDonnees($url); |
45,9 → 26,7 |
|
private function getUrlRecherche($nom, $typeRech) { |
$tpl = Config::get('nomsRechercheTpl'); |
$projet = Registre::get('parametres.referentiel'); |
Debug::printr($projet); |
$params = array('projet' => $projet, 'valeur' => $nom, 'type' => $typeRech); |
$params = array('valeur' => $nom, 'type' => $typeRech); |
$url = $this->formaterUrl($tpl, $params); |
return $url; |
} |