Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 435 Rev 1092
Line 28... Line 28...
28
	public function setSectionTitre($titre) {
28
	public function setSectionTitre($titre) {
29
		$this->sectionTitre = $titre;
29
		$this->sectionTitre = $titre;
30
	}
30
	}
Line 31... Line 31...
31
 
31
 
32
	public function getTexte() {
-
 
33
		$url = $this->getUrlTexte();
-
 
34
		return $this->chargerDonnees($url);
-
 
35
	}
-
 
36
 
-
 
37
	public function getUrlTexte() {
32
	public function getTexte() {
38
		if ($this->sectionTitre != '') {
33
		if ($this->sectionTitre != '') {
39
			$tpl = Config::get('texteTitreSectionTpl');
34
			$tpl = Config::get('texteTitreSectionTpl');
40
			$params = array('id' => $this->id, 'txtFormat' => $this->format, 'sectionTitre' => $this->sectionTitre);
35
			$params = array('id' => $this->id, 'txtFormat' => $this->format, 'sectionTitre' => $this->sectionTitre);
41
		} else {
36
		} else {
42
			$tpl = Config::get('texteTpl');
37
			$tpl = Config::get('texteTpl');
43
			$params = array('id' => $this->id, 'txtFormat' => $this->format);
38
			$params = array('id' => $this->id, 'txtFormat' => $this->format);
44
		}
39
		}
45
		$url = $this->formaterUrl($tpl, $params);
-
 
46
		return $url;
40
		return $this->chargerDonnees($this->formaterUrl($tpl, $params));
Line 47... Line 41...
47
	}
41
	}
48
	
42
	
49
	public function getPageUrl() {
43
	public function getPageUrl() {