Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1707 Rev 1711
Line 47... Line 47...
47
	* @TODO: fonction commune à la génération en CSV
47
	* @TODO: fonction commune à la génération en CSV
48
	*
48
	*
49
	*/
49
	*/
50
	static function nomEnsembleVersListeColonnes($groupe_de_champs = 'standard') {
50
	static function nomEnsembleVersListeColonnes($groupe_de_champs = 'standard') {
51
		if(! $groupe_de_champs) $groupe_de_champs = 'standard';
51
		if(! $groupe_de_champs) $groupe_de_champs = 'standard';
-
 
52
		if(is_string($groupe_de_champs)) {
52
		$groupe_de_champs = array_flip(explode(',', $groupe_de_champs));
53
			$groupe_de_champs = array_flip(explode(',', $groupe_de_champs));
-
 
54
		}
-
 
55
		elseif(is_array($groupe_de_champs)) {
-
 
56
			$groupe_de_champs = array_flip($groupe_de_champs);
-
 
57
		}
-
 
58
		else {
-
 
59
			return NULL;
-
 
60
		}
-
 
61
		$groupe_de_champs = array_intersect_key(array_flip(array('standard','avance','etendu','baseflor')),
-
 
62
												$groupe_de_champs);
-
 
63
		if(!$groupe_de_champs) return NULL;
-
 
64
 
53
		$colonnes = Array();
65
		$colonnes = Array();
Line 54... Line 66...
54
		
66
		
55
		if(isset($groupe_de_champs['standard'])) {
67
		if(isset($groupe_de_champs['standard'])) {
56
			$colonnes += Array(
68
			$colonnes += Array(