Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 816 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 816 Rev 1479
1
<?php
1
<?php
2
/**
2
/**
3
 * 
3
 * 
4
 * classe gérant des informations (descriptives, écologiques )
4
 * classe gérant des informations (descriptives, écologiques )
5
 * 
5
 * 
6
 * @author mathilde SALTHUN-LASSALLE <mathilde@tela-botanica.org>
6
 * @author mathilde SALTHUN-LASSALLE <mathilde@tela-botanica.org>
7
 *
7
 *
8
 */
8
 */
9
class Informations extends Eflore {
9
class Informations extends Eflore {
10
	
10
	
11
	private $bdnt;
11
	private $bdnt;
12
	private $num_nom;
12
	private $num_nom;
13
	private $limite;
13
	private $limite;
14
	private $depart;
14
	private $depart;
15
	private $catminat;
15
	private $catminat;
16
	
16
	
17
	
17
	
18
	public function setDepart($depart){
18
	public function setDepart($depart){
19
		$this->depart = $depart;
19
		$this->depart = $depart;
20
	}
20
	}
21
	
21
	
22
	public function setLimite($limite){
22
	public function setLimite($limite){
23
		$this->limite = $limite;
23
		$this->limite = $limite;
24
	}	
24
	}	
25
		
25
		
26
	public function setBdnt($bdnt){
26
	public function setBdnt($bdnt){
27
		$this->bdnt = $bdnt;
27
		$this->bdnt = $bdnt;
28
	}
28
	}
29
	
29
	
30
	public function setNum_nom($nn){
30
	public function setNum_nom($nn){
31
		$this->num_nom = $nn;
31
		$this->num_nom = $nn;
32
	}
32
	}
33
	
33
	
34
	public function setCatminat($catminat){
34
	public function setCatminat($catminat){
35
		$this->catminat = $catminat;
35
		$this->catminat = $catminat;
36
	}
36
	}
37
	
37
	
38
	public function getInformations() {	
38
	public function getInformations() {	
39
		$url = $this->getUrlInformation();
39
		$url = $this->getUrlInformation();
40
		return $this->chargerDonnees($url);
40
		return $this->chargerDonnees($url);
41
	}
41
	}
42
	
42
	
43
 
43
 
44
	
44
	
45
	public function getInformationsEcologie() {
45
	public function getInformationsEcologie() {
46
		$url = $this->getUrlInformation();
46
		$url = $this->getUrlInformation();
47
		$url .= '?categorie=ecologie';
47
		$url .= '?categorie=ecologie';
48
		return $this->chargerDonnees($url);
48
		return $this->chargerDonnees($url);
49
	}
49
	}
50
	
50
	
51
	public function getInformationsDescription() {
51
	public function getInformationsDescription() {
52
		$url = $this->getUrlInformation();
52
		$url = $this->getUrlInformation();
53
		$url .= '?categorie=description';
53
		$url .= '?categorie=description';
54
		return $this->chargerDonnees($url);
54
		return $this->chargerDonnees($url);
55
	}
55
	}
56
		
56
		
57
	public function getInformationsRelationCatminat() {
57
	public function getInformationsRelationCatminat() {
58
		$url = $this->getUrlInformationsRelationCatminat();
58
		$url = $this->getUrlInformationsRelationCatminat();
59
		return $this->chargerDonnees($url);
59
		return $this->chargerDonnees($url);
60
	}
60
	}
61
	
61
	
62
	public function getInformationsMasqueCatminat() {
62
	public function getInformationsMasqueCatminat() {
63
		$url = $this->getUrlInformationsMasqueCatminat();
63
		$url = $this->getUrlInformationsMasqueCatminat();
64
		return $this->chargerDonnees($url);
64
		return $this->chargerDonnees($url);
65
	}
65
	}
66
	
66
	
67
	
67
	
68
	
68
	
69
	public function getUrlInformation() {
69
	public function getUrlInformation() {
70
		$tpl = Config::get('informationTpl');
70
		$tpl = Config::get('informationTpl');
71
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
71
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
72
		$url = $this->formaterUrl($tpl, $params);
72
		$url = $this->formaterUrl($tpl, $params);
73
		return $url;
73
		return $url;
74
	}
74
	}
75
	
75
	
76
	public function getUrlInformationsRelationCatminat() {
76
	public function getUrlInformationsRelationCatminat() {
77
		$tpl = Config::get('informationsRelationCatminat');
77
		$tpl = Config::get('informationsRelationCatminat');
78
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom, 'limite' => $this->limite, 'depart' => $this->depart  );
78
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom, 'limite' => $this->limite, 'depart' => $this->depart  );
79
		$url = $this->formaterUrl($tpl, $params);
79
		$url = $this->formaterUrl($tpl, $params);
80
		return $url;
80
		return $url;
81
	}
81
	}
82
	
82
	
83
	public function getUrlInformationsMasqueCatminat() {
83
	public function getUrlInformationsMasqueCatminat() {
84
		$tpl = Config::get('informationsCatminat');
84
		$tpl = Config::get('informationsCatminat');
85
		$params = array( 'catminat' => $this->catminat, 'limite' => $this->limite, 'depart' => $this->depart  );
85
		$params = array( 'catminat' => $this->catminat, 'limite' => $this->limite, 'depart' => $this->depart  );
86
		$url = $this->formaterUrl($tpl, $params);
86
		$url = $this->formaterUrl($tpl, $params);
87
		return $url;
87
		return $url;
88
	}
88
	}
89
	
89
	
90
 
-
 
91
}
90
 
-
 
91
}