Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 291 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 291 Rev 294
Line 13... Line 13...
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class Repartition extends aControleur {
15
class Repartition extends aControleur {
Line 16... Line 16...
16
 
16
 
17
	private $conteneur = null;
17
	private $conteneur = null;
18
	private $nomCourrant = null;
18
	private $nomCourant = null;
19
	private $tailleBloc = "190x178";
19
	private $tailleBloc = "190x178";
Line 20... Line 20...
20
	private $serviceChorodep = null;
20
	private $serviceChorodep = null;
21
 
21
 
22
	public function __construct(Conteneur $conteneur) {
22
	public function __construct(Conteneur $conteneur) {
23
		$this->conteneur = $conteneur;
23
		$this->conteneur = $conteneur;
24
		$this->nomCourrant = $this->conteneur->getNomCourrant();
24
		$this->nomCourant = $this->conteneur->getNomCourant();
25
		$this->cartes = $this->conteneur->getApiCartes();
25
		$this->cartes = $this->conteneur->getApiCartes();
26
		$this->meta = $this->conteneur->getApiMetaDonnees();
26
		$this->meta = $this->conteneur->getApiMetaDonnees();
Line 33... Line 33...
33
	}
33
	}
Line 34... Line 34...
34
 
34
 
35
	public function getChorodep() {
35
	public function getChorodep() {
36
		$this->cartes->setProjet('chorodep');
36
		$this->cartes->setProjet('chorodep');
37
		$this->cartes->setLargeur('630');
37
		$this->cartes->setLargeur('630');
38
		$id = 'nn:'.$this->nomCourrant->getNns();
38
		$id = 'nn:'.$this->nomCourant->getNns();
39
		$this->cartes->setId($id);
39
		$this->cartes->setId($id);
40
		$chorodep['svgUrl'] = $this->cartes->getUrlDataSvg();
40
		$chorodep['svgUrl'] = $this->cartes->getUrlDataSvg();
41
		$chorodep['pngUrl'] = $this->cartes->getUrlPng();
41
		$chorodep['pngUrl'] = $this->cartes->getUrlPng();
42
		$chorodep['legende'] = $this->cartes->getLegende();
42
		$chorodep['legende'] = $this->cartes->getLegende();
Line 49... Line 49...
49
	}
49
	}
Line 50... Line 50...
50
 
50
 
51
	public function getBloc() {
51
	public function getBloc() {
52
		$this->cartes->setProjet('chorodep');
52
		$this->cartes->setProjet('chorodep');
53
		$this->cartes->setLargeur('190x178');
53
		$this->cartes->setLargeur('190x178');
54
		$id = 'nn:'.$this->nomCourrant->getNns();
54
		$id = 'nn:'.$this->nomCourant->getNns();
55
		$this->cartes->setId($id);
55
		$this->cartes->setId($id);
56
		$donnees['carteUrl'] = $this->cartes->getUrlPng();
56
		$donnees['carteUrl'] = $this->cartes->getUrlPng();
57
		return $donnees;
57
		return $donnees;
58
	}
58
	}