Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 901 Rev 902
Line 105... Line 105...
105
		$ontologie = array();
105
		$ontologie = array();
106
		$url = Config::get('url_service_base').Config::get('nom_projet').
106
		$url = Config::get('url_service_base').Config::get('nom_projet').
107
							'/ontologies/'.$code.':'.urlencode(urlencode($valeur));
107
							'/ontologies/'.$code.':'.urlencode(urlencode($valeur));
108
		if(array_key_exists($url, $this->cache)) {
108
		if(array_key_exists($url, $this->cache)) {
109
			$val = $this->cache[$url];
109
			$val = $this->cache[$url];
110
			error_log("from cache");
-
 
111
		} else {
110
		} else {
112
			$val = $this->consulterHref($url);
111
			$val = $this->consulterHref($url);
113
			$this->cache[$url] = $val;
112
			$this->cache[$url] = $val;
114
		}
113
		}
115
		$ontologie['niveau.code'] = $valeur;
114
		$ontologie['niveau.code'] = $valeur;