Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 256 Rev 257
Line 16... Line 16...
16
 
16
 
17
	private $numero;
17
	private $numero;
18
	private $type; //nt taxonomique ou nn nomenclatural
18
	private $type; //nt taxonomique ou nn nomenclatural
Line 19... Line 19...
19
	private $largeur;
19
	private $largeur;
-
 
20
	
20
	
21
	public function __construct($projet, $numero, $type = 'nt', $largeur = 630) {
21
	public function __Construct($numero, $type = 'nt', $largeur = 630) {
22
		parent::__construct($projet);
22
		$this->type = $type;
23
		$this->type = $type;
23
		$this->numero = $numero;
24
		$this->numero = $numero;
Line 24... Line 25...
24
		$this->largeur = $largeur;
25
		$this->largeur = $largeur;
25
	}
26
	}
26
	
27
	
27
	public function getUrlImage() {
28
	public function getUrlImage() {
28
		switch ($this->type) {
29
		switch ($this->type) {
29
			case 'nn' :
30
			case 'nn' :
30
				$nomTemplate = 'urlChorologieParNnTpl';
31
				$nomTemplate = 'cartesParNnTpl';
31
			break;
32
			break;
32
			case 'nt' : 
33
			case 'nt' : 
33
				$nomTemplate = 'urlChorologieParNtTpl';
34
				$nomTemplate = 'cartesParNtTpl';
34
			break;
35
			break;
35
		}
36
		}
Line 40... Line 41...
40
	}
41
	}
Line 41... Line 42...
41
 
42
 
42
	public function getLegende() {
43
	public function getLegende() {
43
		switch ($this->type) {
44
		switch ($this->type) {
44
			case 'nn' :
45
			case 'nn' :
45
				$nomTemplate = 'legendeChorologieParNnTpl';
46
				$nomTemplate = 'legendeCartesParNnTpl';
46
			break;
47
			break;
47
			case 'nt' : 
48
			case 'nt' : 
48
				$nomTemplate = 'legendeChorologieParNtTpl';
49
				$nomTemplate = 'legendeCartesParNtTpl';
49
			break;
50
			break;
50
		}
51
		}
51
		$tpl = Config::get($nomTemplate);
52
		$tpl = Config::get($nomTemplate);
52
		$params = array($this->type => $this->numero);
53
		$params = array($this->type => $this->numero);