Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 777 → Rev 778

/trunk/metier/api_0.1/Informations.php
10,8 → 10,17
private $bdnt;
private $num_nom;
private $limite;
private $depart;
public function setDepart($depart){
$this->depart = $depart;
}
public function setLimite($limite){
$this->limite = $limite;
}
public function setBdnt($bdnt){
$this->bdnt = $bdnt;
26,6 → 35,8
return $this->chargerDonnees($url);
}
 
public function getInformationsEcologie() {
$url = $this->getUrlInformation();
$url .= '?categorie=ecologie';
45,6 → 56,17
return $url;
}
public function getInformationsRelationCatminat() {
$url = $this->getUrlInformationsRelationCatminat();
return $this->chargerDonnees($url);
}
public function getUrlInformationsRelationCatminat() {
$tpl = Config::get('informationsRelationCatminat');
$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom, 'limite' => $this->limite, 'depart' => $this->depart );
$url = $this->formaterUrl($tpl, $params);
return $url;
}
 
}