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