Subversion Repositories eFlore/Applications.coel-consultation

Compare Revisions

Ignore whitespace Rev 84 → Rev 147

/trunk/bibliotheque/dao/RechercheDao.php
12,7 → 12,7
* @version SVN: $Id$
*
*/
class RechercheDao extends ColModele {
class RechercheDao extends Dao {
const SERVICE = 'CoelRecherche';
/**
21,8 → 21,7
*/
public function chercherStructureNbre($parametres) {
$url = $this->construireUrlRecherche('Nombre', $parametres, false);
$json = file_get_contents($url);
$json = $this->envoyerRequeteConsultation($url);
$donnees = json_decode($json);
return $donnees;
}
34,8 → 33,9
public function chercher($parametres) {
$url = $this->construireUrlRecherche('ParDefaut', $parametres);
$json = file_get_contents($url);
$donnees = json_decode($json, true);
$json = $this->envoyerRequeteConsultation($url);
$donnees = json_decode($json, true);
return $donnees;
}
51,13 → 51,6
$url .= '/*';
}
}
if ($limitation) {
$url .= ($this->avoirLimitation() ? "?start={$this->getLimiteDebut()}&limit={$this->getLimiteNbre()}" : '');
$url .= "&distinct={$this->getDistinction()}";
} else {
$url .= "?distinct={$this->getDistinction()}";
}
return $url;
}
}