Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 636 Rev 778
Line 8... Line 8...
8
 */
8
 */
9
class Informations extends Eflore {
9
class Informations extends Eflore {
Line 10... Line 10...
10
	
10
	
11
	private $bdnt;
11
	private $bdnt;
-
 
12
	private $num_nom;
-
 
13
	private $limite;
Line -... Line 14...
-
 
14
	private $depart;
-
 
15
	
-
 
16
	
-
 
17
	public function setDepart($depart){
-
 
18
		$this->depart = $depart;
-
 
19
	}
-
 
20
	
Line 12... Line 21...
12
	private $num_nom;
21
	public function setLimite($limite){
13
	
22
		$this->limite = $limite;
14
	
23
	}	
Line 24... Line 33...
24
	public function getInformations() {	
33
	public function getInformations() {	
25
		$url = $this->getUrlInformation();
34
		$url = $this->getUrlInformation();
26
		return $this->chargerDonnees($url);
35
		return $this->chargerDonnees($url);
27
	}
36
	}
Line -... Line 37...
-
 
37
	
-
 
38
 
28
	
39
	
29
	public function getInformationsEcologie() {
40
	public function getInformationsEcologie() {
30
		$url = $this->getUrlInformation();
41
		$url = $this->getUrlInformation();
31
		$url .= '?categorie=ecologie';
42
		$url .= '?categorie=ecologie';
32
		return $this->chargerDonnees($url);
43
		return $this->chargerDonnees($url);
Line 43... Line 54...
43
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
54
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom );
44
		$url = $this->formaterUrl($tpl, $params);
55
		$url = $this->formaterUrl($tpl, $params);
45
		return $url;
56
		return $url;
46
	}
57
	}
Line -... Line 58...
-
 
58
	
-
 
59
	public function getInformationsRelationCatminat() {
-
 
60
		$url = $this->getUrlInformationsRelationCatminat();
-
 
61
		return $this->chargerDonnees($url);
-
 
62
	}
-
 
63
	
-
 
64
	public function getUrlInformationsRelationCatminat() {
-
 
65
		$tpl = Config::get('informationsRelationCatminat');
-
 
66
		$params = array( 'bdnt' => $this->bdnt, 'num_nom' => $this->num_nom, 'limite' => $this->limite, 'depart' => $this->depart  );
-
 
67
		$url = $this->formaterUrl($tpl, $params);
-
 
68
		return $url;
Line 47... Line 69...
47
	
69
	}
48
	
70