Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 584 Rev 901
Line 28... Line 28...
28
	protected $requete_condition = '';
28
	protected $requete_condition = '';
29
	protected $total_resultat;
29
	protected $total_resultat;
30
	protected $champs_recherches = ' * ';
30
	protected $champs_recherches = ' * ';
31
	protected $table_version;
31
	protected $table_version;
32
	protected $version_projet = '+' ;
32
	protected $version_projet = '+' ;
33
	
-
 
-
 
33
	protected $cache = array();	
Line 34... Line 34...
34
	
34
	
35
	
35
	
36
	public function __construct(Conteneur $conteneur) {
36
	public function __construct(Conteneur $conteneur) {
Line 103... Line 103...
103
	
103
	
104
	protected function recupererOntologiesNiveau($valeur, $code){
104
	protected function recupererOntologiesNiveau($valeur, $code){
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));
-
 
108
		if(array_key_exists($url, $this->cache)) {
-
 
109
			$val = $this->cache[$url];
-
 
110
			error_log("from cache");
107
							'/ontologies/'.$code.':'.urlencode(urlencode($valeur));
111
		} else {
-
 
112
			$val = $this->consulterHref($url);
-
 
113
			$this->cache[$url] = $val;
108
		$val = $this->consulterHref($url);
114
		}
109
		$ontologie['niveau.code'] = $valeur;
115
		$ontologie['niveau.code'] = $valeur;
110
		$ontologie['niveau.libelle'] = $val->nom;
116
		$ontologie['niveau.libelle'] = $val->nom;
111
		$ontologie['niveau.href'] = $url;
117
		$ontologie['niveau.href'] = $url;
112
		return $ontologie;
118
		return $ontologie;