Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1533 Rev 1535
Line 13... Line 13...
13
	 */
13
	 */
14
	public function __construct(Array $metadonnees) {
14
	public function __construct(Array $metadonnees) {
15
		$ontologie = array(0 => array('nom' => 'Non renseigné', 'abr' => 'NR'));
15
		$ontologie = array(0 => array('nom' => 'Non renseigné', 'abr' => 'NR'));
16
		foreach ($metadonnees as $meta) {
16
		foreach ($metadonnees as $meta) {
17
			$ontologie[$meta['cmlv_id_valeur']] = array(
17
			$ontologie[$meta['cmlv_id_valeur']] = array(
18
				'nom' => ((isset($meta['cmlv_nom']) ? $meta['cmlv_nom'] : null), 
18
				'nom' => (isset($meta['cmlv_nom']) ? $meta['cmlv_nom'] : null), 
19
				'abr' => ((isset($meta['cmlv_abreviation']) ? $meta['cmlv_abreviation'] : null),
19
				'abr' => (isset($meta['cmlv_abreviation']) ? $meta['cmlv_abreviation'] : null),
20
				'dsc' => ((isset($meta['cmlv_description']) ? $meta['cmlv_description'] : null));
20
				'dsc' => (isset($meta['cmlv_description']) ? $meta['cmlv_description'] : null));
21
		}
21
		}
22
		$this->ontologie = $ontologie;
22
		$this->ontologie = $ontologie;
23
	}
23
	}
Line 24... Line 24...
24
 
24