Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 117 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 jpm 1
<?php
2
class Outils {
3
	public static function recupererTableauConfig($param) {
4
		$tableau = array();
5
		$tableauPartiel = explode(',', Config::get($param));
6
		$tableauPartiel = array_map('trim', $tableauPartiel);
7
		foreach ($tableauPartiel as $champ) {
8
			if (strpos($champ, '=') === false) {
9
				$tableau[] = $champ;
10
			} else {
11
				list($cle, $val) = explode('=', $champ);
12
				$tableau[$cle] = $val;
13
			}
14
		}
15
		return $tableau;
16
	}
17
}
18
?>