174,6 → 174,11 |
return $url; |
} |
|
protected function redirigerVers($url) { |
$url = str_replace('&', '&', $url); |
header("Location: $url"); |
} |
|
private function getParametresUrlListe() { |
$parametres = array( |
'referentiel' => Registre::get('parametres.referentiel'), |
201,10 → 206,41 |
return $url; |
} |
|
private function getParametresUrlRecherche() { |
$parametres = array( |
'referentiel' => Registre::get('parametres.referentiel'), |
'module' => 'recherche-simple', |
'action' => 'rechercheNom', |
'submit' => 'Rechercher' |
); |
return $parametres; |
} |
|
protected function obtenirUrlRecherche($txt = null) { |
// TODO : à revoir selon le modèle ci-dessus |
protected function obtenirUrlRechercheSimple($nom = null, $type = 'nom_scientifique') { |
$parametres = $this->getParametresUrlRecherche(); |
$parametres['module'] = 'recherche-simple'; |
$parametres['type_nom'] = $type; |
$parametres['nom'] = $nom; |
$this->urlBase->setRequete($parametres); |
$url = $this->urlBase->getURL(); |
return $url; |
} |
|
private function getParametresUrlFiche() { |
$parametres = array( |
'referentiel' => Registre::get('parametres.referentiel'), |
'module' => 'fiche', |
'action' => 'fiche' |
); |
return $parametres; |
} |
|
protected function obtenirUrlFiche($numNom) { |
$parametres = $this->getParametresUrlFiche(); |
$parametres['nn'] = $numNom; |
$this->urlBase->setRequete($parametres); |
$url = $this->urlBase->getURL(); |
return $url; |
} |
} |
?> |