Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1025 → Rev 1026

/trunk/metier/api_0.1/Cartes.php
27,7 → 27,11
public function setInfoNom($nom) {
$this->nom = $nom;
}
}
public function setInfoReferentiel($referentiel) {
$this->referentiel = $referentiel;
}
 
public function getUrlDataSvg() {
$tpl = Config::get('carteTpl');
52,6 → 56,22
return $url;
}
public function getUrlMapSvg() {
$tpl = Config::get('carteMoissonnageTpl');
$params = array('num_taxon' => $this->nom, 'referentiel' => $this->referentiel,
'largeur' => $this->largeur, 'mime_type' => 'text/html');
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getUrlMapPng() {
$tpl = Config::get('carteMoissonnageTpl');
$params = array('num_taxon' => $this->nom, 'referentiel' => $this->referentiel,
'largeur' => $this->largeur, 'mime_type' => 'image/png');
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getUrlEflorePng() {
$tpl = Config::get('efloreCarteTpl');
$params = array('num_nom' => $this->nom->get('id'), 'num_tax' => $this->nom->get('num_taxonomique') ,