Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2143 Rev 2149
Line 547... Line 547...
547
 
547
 
548
	static public function harmoniserChemin($chemin) {
548
	static public function harmoniserChemin($chemin) {
549
		$chemin = self::startsWith($chemin,'/') ? $chemin : '/'.$chemin;
549
		$chemin = self::startsWith($chemin,'/') ? $chemin : '/'.$chemin;
550
		$chemin = self::endsWith($chemin,'/') ? $chemin : $chemin.'/';
550
		$chemin = self::endsWith($chemin,'/') ? $chemin : $chemin.'/';
-
 
551
		$chemin = str_replace('//', '/', $chemin);
-
 
552
		// mise en minuscule du chemin afin d'éviter des cas où l'on aurait 
-
 
553
		// des même mots clés avec minuscule et majuscule
551
		$chemin = str_replace('//', '/', $chemin);
554
		$chemin = strtolower($chemin);
552
		return $chemin;
555
		return $chemin;
Line 553... Line 556...
553
	}
556
	}
554
 
557
 
Line 559... Line 562...
559
	 * clés texte dans les tables obs ou image)
562
	 * clés texte dans les tables obs ou image)
560
	 */
563
	 */
561
	static public function simplifier($text) {
564
	static public function simplifier($text) {
562
		$caracteresASupprimer = array('\\','/', ',');
565
		$caracteresASupprimer = array('\\','/', ',');
563
		$text = str_replace($caracteresASupprimer, '', $text);
566
		$text = str_replace($caracteresASupprimer, '', $text);
564
		$text = trim($text);
567
		$text = strtolower(trim($text));
565
		return $text;
568
		return $text;
566
	}
569
	}
Line 567... Line 570...
567
 
570
 
568
	/**
571
	/**