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)); |
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; |