15,11 → 15,21 |
class Repartition extends aControleur { |
private $serviceChorodep = null; |
|
public function __construct($num_nom, $type = 'nn') { |
public function initialiser($num_nom, $type) { |
$this->serviceChorodep = new Cartes('chorodep', $num_nom, $type); |
$this->serviceMetaDonneesChorodep = new MetaDonnees('chorodep'); |
} |
|
|
public function obtenirDonnees($num_nom, $type = 'nn') { |
$this->initialiser($num_nom, $type); |
$donnees['svg'] = $this->getUrlDataSvg(); |
$donnees['png'] = $this->getUrlPng(); |
$donnees['legende'] = $this->getLegende(); |
$donnees['metadonnees'] = $this->getMetaDonnees(); |
return $donnees; |
} |
|
public function getUrlDataSvg() { |
return $this->serviceChorodep->getUrlDataSvg(); |
} |