Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 291 Rev 435
Line 32... Line 32...
32
	public function getTexte() {
32
	public function getTexte() {
33
		$url = $this->getUrlTexte();
33
		$url = $this->getUrlTexte();
34
		return $this->chargerDonnees($url);
34
		return $this->chargerDonnees($url);
35
	}
35
	}
Line 36... Line 36...
36
 
36
 
37
	private function getUrlTexte() {
37
	public function getUrlTexte() {
38
		if ($this->sectionTitre != '') {
38
		if ($this->sectionTitre != '') {
39
			$tpl = Config::get('texteTitreSectionTpl');
39
			$tpl = Config::get('texteTitreSectionTpl');
40
			$params = array('id' => $this->id, 'txtFormat' => $this->format, 'sectionTitre' => $this->sectionTitre);
40
			$params = array('id' => $this->id, 'txtFormat' => $this->format, 'sectionTitre' => $this->sectionTitre);
41
		} else {
41
		} else {
42
			$tpl = Config::get('texteTpl');
42
			$tpl = Config::get('texteTpl');
43
			$params = array('id' => $this->id, 'txtFormat' => $this->format);
43
			$params = array('id' => $this->id, 'txtFormat' => $this->format);
44
		}
44
		}
45
		$url = $this->formaterUrl($tpl, $params);
45
		$url = $this->formaterUrl($tpl, $params);
46
		return $url;
46
		return $url;
-
 
47
	}
-
 
48
	
-
 
49
	public function getPageUrl() {
-
 
50
		$url = '';
-
 
51
		if(Config::get($this->getProjet().'LienPageTpl')) {
-
 
52
			$tpl = Config::get($this->getProjet().'LienPageTpl');
-
 
53
			$params = array('id' => $this->id, 'langue' => 'fr');
-
 
54
			$url = $this->formaterUrl($tpl, $params);
-
 
55
		}
-
 
56
		
-
 
57
		return $url;
47
	}
58
	}
48
}
59
}
49
?>
60
?>