Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 900 → Rev 901

/trunk/services/modules/0.1/baseveg/syntaxons/SyntaxonsCommun.php
30,9 → 30,9
protected $champs_recherches = ' * ';
protected $table_version;
protected $version_projet = '+' ;
protected $cache = array();
public function __construct(Conteneur $conteneur) {
$this->Bdd = $conteneur->getBdd();
$this->syn = $this->getParametreTableauSpe('synonymes');
105,7 → 105,13
$ontologie = array();
$url = Config::get('url_service_base').Config::get('nom_projet').
'/ontologies/'.$code.':'.urlencode(urlencode($valeur));
$val = $this->consulterHref($url);
if(array_key_exists($url, $this->cache)) {
$val = $this->cache[$url];
error_log("from cache");
} else {
$val = $this->consulterHref($url);
$this->cache[$url] = $val;
}
$ontologie['niveau.code'] = $valeur;
$ontologie['niveau.libelle'] = $val->nom;
$ontologie['niveau.href'] = $url;