Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 235 → Rev 236

/trunk/bibliotheque/dao/RechercheDao.php
21,7 → 21,7
* Recherche un référentiel en fonction de paramètres
* @return le nombre de résultats répondant à la requête
*/
public function chercherStructureNbre($type, $parametres) {
public function chercherStructureNbre($type, $parametres) {
$url = $this->construireUrlRecherche($type, $parametres, false);
$json = $this->envoyerRequeteConsultation($url);
$donnees = json_decode($json);
32,16 → 32,16
* Recherche un référentiel en fonction de paramêtres
* @return array un tableau contenant des objets d'informations sur les taxons
*/
public function chercher($type, $parametres) {
$this->ordre['nom_sci'] = 'ASC';
public function chercher($type, $parametres) {
$this->ordre['nom_sci'] = 'ASC';
$url = $this->construireUrlRecherche($type, $parametres);
$json = $this->envoyerRequeteConsultation($url);
$donnees = json_decode($json, true);
$json = $this->envoyerRequeteConsultation($url);
$donnees = json_decode($json, true);
return $donnees;
}
private function construireUrlRecherche($type, $parametres, $limitation = true) {
$url = $this->url_jrest.self::SERVICE.'/'.$type;
}
 
private function construireUrlRecherche($type, $parametres, $limitation = true) {
$url = $this->url_jrest.self::SERVICE.'/'.$type;
$params_a_passer = array('ref', 'mots', 'sg', 'gen', 'sp', 'ssp', 'au', 'an', 'nn', 'bib', 'nr', 'tax', 'pre', 'taxref');
foreach ($params_a_passer as $param_cle) {
53,6 → 53,6
}
}
return $url;
}
}
}
?>