Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 546 Rev 548
Line 52... Line 52...
52
	}
52
	}
Line 53... Line 53...
53
	
53
	
54
	//+----------------------------------------------------------------------------------------------------------------+
54
	//+----------------------------------------------------------------------------------------------------------------+
Line -... Line 55...
-
 
55
	// GESTION DE MÉTHODES COMMUNES ENTRE LES SERVICES
-
 
56
	
-
 
57
	protected function getUrlImage($id, $format = 'L') {
-
 
58
		$url_tpl = $this->config['chemins']['celImgUrlTpl'];
-
 
59
		$id = sprintf('%09s', $id).$format;
-
 
60
		$url = sprintf($url_tpl, $id); 
-
 
61
		return $url;
55
	// GESTION DE MÉTHODES COMMUNES ENTRE LES SERVICES
62
	}
56
	
63
	
57
	protected function encoderMotCle($mot_cle) {
64
	protected function encoderMotCle($mot_cle) {
Line -... Line 65...
-
 
65
		return md5(mb_strtolower($mot_cle));
-
 
66
	}
-
 
67
	
-
 
68
	private function protegerMotsCles($mots_cles, $type) {
-
 
69
		$separateur = ($type == self::TYPE_IMG) ? ',' : ';' ;
-
 
70
		$mots_cles_a_proteger = explode($separateur,rtrim(trim($mots_cles), $separateur));
-
 
71
		foreach ($mots_cles_a_proteger as $mot) {
-
 
72
			$mots_cles_proteges[] = $this->bdd->quote($mot);
-
 
73
		}
-
 
74
		$mots_cles = implode(',', $mots_cles_proteges);
58
		return md5(mb_strtolower($mot_cle));
75
		return $mots_cles;
59
	}
76
	}
60
	
77
	
61
	protected function tronquerCourriel($courriel) {
78
	protected function tronquerCourriel($courriel) {