Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 117 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php 
class Outils {
        public static function recupererTableauConfig($param) {
                $tableau = array();
                $tableauPartiel = explode(',', Config::get($param));
                $tableauPartiel = array_map('trim', $tableauPartiel);
                foreach ($tableauPartiel as $champ) {
                        if (strpos($champ, '=') === false) {
                                $tableau[] = $champ;
                        } else {
                                list($cle, $val) = explode('=', $champ);
                                $tableau[$cle] = $val;
                        }
                }
                return $tableau;
        }
}
?>