/trunk/services/modules/0.1/baseveg/Ontologies.php |
---|
113,6 → 113,7 |
} elseif (strrpos($this->ressources[0], ':') !== false) { |
$this->format_reponse .= '/id'; |
preg_match('/^([^:]+):([^:]+)$/', $this->ressources[0], $match); |
if (!isset($match[2])) $match[1] = $match[2] = ""; |
$this->requete_condition[] = |
' id = (SELECT id FROM '.$this->table.' WHERE code = BINARY '.$this->getBdd()->proteger($match[2]) |
.' AND classe_id = (SELECT id FROM '.$this->table.' WHERE code = BINARY '.$this->getBdd()->proteger($match[1]).'))'; |