Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 815 → Rev 816

/trunk/metier/api_0.1/Informations.php
12,6 → 12,7
private $num_nom;
private $limite;
private $depart;
private $catminat;
public function setDepart($depart){
30,6 → 31,10
$this->num_nom = $nn;
}
public function setCatminat($catminat){
$this->catminat = $catminat;
}
public function getInformations() {
$url = $this->getUrlInformation();
return $this->chargerDonnees($url);
48,7 → 53,19
$url .= '?categorie=description';
return $this->chargerDonnees($url);
}
public function getInformationsRelationCatminat() {
$url = $this->getUrlInformationsRelationCatminat();
return $this->chargerDonnees($url);
}
public function getInformationsMasqueCatminat() {
$url = $this->getUrlInformationsMasqueCatminat();
return $this->chargerDonnees($url);
}
public function getUrlInformation() {
$tpl = Config::get('informationTpl');
$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
56,11 → 73,6
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 );
68,5 → 80,12
return $url;
}
public function getUrlInformationsMasqueCatminat() {
$tpl = Config::get('informationsCatminat');
$params = array( 'catminat' => $this->catminat, 'limite' => $this->limite, 'depart' => $this->depart );
$url = $this->formaterUrl($tpl, $params);
return $url;
}
 
}