Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 221 Rev 223
Line 78... Line 78...
78
		$experts = $this->collectionDao->getPersonnesLieesExpertes($this->donnees['id']);
78
		$experts = $this->collectionDao->getPersonnesLieesExpertes($this->donnees['id']);
79
		$contributeurs = $this->collectionDao->getPersonnesLieesContributrices($this->donnees['id']);		
79
		$contributeurs = $this->collectionDao->getPersonnesLieesContributrices($this->donnees['id']);		
Line 80... Line 80...
80
		
80
		
81
		$donnees_info['contributeur'] = $this->formaterTableauMetadonnees($contributeurs, 'cp_fmt_nom_complet');
81
		$donnees_info['contributeur'] = $this->formaterTableauMetadonnees($contributeurs, 'cp_fmt_nom_complet');
82
		$donnees_info['expert'] = $this->formaterTableauMetadonnees($experts, 'cp_fmt_nom_complet');
82
		$donnees_info['expert'] = $this->formaterTableauMetadonnees($experts, 'cp_fmt_nom_complet');
Line 83... Line 83...
83
		$donnees_info['cmhl_source'] = $this->formaterTableauMetadonnees($sources, 'cpu_fmt_nom_complet');
83
		$donnees_info['cmhl_source'] = $this->formaterTableauMetadonnees($sources, 'cpu_fmt_nom_complet', "<br />");
84
		
84
		
Line 85... Line 85...
85
		return $donnees_info;
85
		return $donnees_info;
86
	}
86
	}
87
	
87
	
88
	private function formaterTableauMetadonnees(&$donnees, $champ_a_extraire) {
88
	private function formaterTableauMetadonnees(&$donnees, $champ_a_extraire, $separateur = ", ") {
89
		$donnees_fmt = array();
89
		$donnees_fmt = array();
90
		foreach($donnees as &$donnee) {
90
		foreach($donnees as &$donnee) {
91
			$donnees_fmt[] = $donnee[$champ_a_extraire];
91
			$donnees_fmt[] = $donnee[$champ_a_extraire];
Line 92... Line 92...
92
		}
92
		}
93
		return implode(', ', $donnees_fmt);
93
		return implode($separateur, $donnees_fmt);
94
	}
94
	}