Line 111... |
Line 111... |
111 |
$this->format_reponse .= '/id';
|
111 |
$this->format_reponse .= '/id';
|
112 |
//requete : /ontologies/#classe:#code (ex : /ontologies/rangTaxo:290)
|
112 |
//requete : /ontologies/#classe:#code (ex : /ontologies/rangTaxo:290)
|
113 |
} elseif (strrpos($this->ressources[0], ':') !== false) {
|
113 |
} elseif (strrpos($this->ressources[0], ':') !== false) {
|
114 |
$this->format_reponse .= '/id';
|
114 |
$this->format_reponse .= '/id';
|
115 |
preg_match('/^([^:]+):([^:]+)$/', $this->ressources[0], $match);
|
115 |
preg_match('/^([^:]+):([^:]+)$/', $this->ressources[0], $match);
|
- |
|
116 |
if (!isset($match[2])) $match[1] = $match[2] = "";
|
116 |
$this->requete_condition[] =
|
117 |
$this->requete_condition[] =
|
117 |
' id = (SELECT id FROM '.$this->table.' WHERE code = BINARY '.$this->getBdd()->proteger($match[2])
|
118 |
' id = (SELECT id FROM '.$this->table.' WHERE code = BINARY '.$this->getBdd()->proteger($match[2])
|
118 |
.' AND classe_id = (SELECT id FROM '.$this->table.' WHERE code = BINARY '.$this->getBdd()->proteger($match[1]).'))';
|
119 |
.' AND classe_id = (SELECT id FROM '.$this->table.' WHERE code = BINARY '.$this->getBdd()->proteger($match[1]).'))';
|
119 |
} else {
|
120 |
} else {
|
120 |
$e = 'Erreur dans les paramètres de recherche de votre requête : </br> Le paramètre " '
|
121 |
$e = 'Erreur dans les paramètres de recherche de votre requête : </br> Le paramètre " '
|