Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 701 Rev 951
Line 91... Line 91...
91
			$code = RestServeur::HTTP_CODE_RESSOURCE_INTROUVABLE;
91
			$code = RestServeur::HTTP_CODE_RESSOURCE_INTROUVABLE;
92
			throw new Exception($message, $code);
92
			throw new Exception($message, $code);
93
		}
93
		}
Line 94... Line 94...
94
 
94
 
95
		foreach ($resultats as $ontologie) {
95
		foreach ($resultats as $ontologie) {
96
			$this->ontologies[$ontologie['id']] = $this->extraireComplementsOntologies($ontologie);
96
			$this->ontologies[$ontologie['id']] = Commun::extraireComplementsOntologies($ontologie);
97
		}
97
		}
Line 98... Line -...
98
	}
-
 
99
 
-
 
100
	private function extraireComplementsOntologies($ontologie) {
-
 
101
		if ($ontologie['complements'] != '') {
-
 
102
			$complements = explode(',', trim($ontologie['complements']));
-
 
103
			foreach ($complements as $complement) {
-
 
104
				list($cle, $val) = explode('=', trim($complement));
-
 
105
				$ontologie[trim($cle)] = trim($val);
-
 
106
			}
-
 
107
		}
-
 
108
		return $ontologie;
-
 
109
	}
98
	}
110
 
99
 
111
	private function chargerLegende() {
100
	private function chargerLegende() {
112
		foreach ($this->ontologies as $ontologie) {
101
		foreach ($this->ontologies as $ontologie) {
113
			if ($ontologie['classe_id'] == self::PRESENCE_CHOROLOGIE) {
102
			if ($ontologie['classe_id'] == self::PRESENCE_CHOROLOGIE) {