14,6 → 14,8 |
* @see http://www.tela-botanica.org/wikini/eflore/wakka.php?wiki=ApiIdentiplante01Images |
*/ |
|
require_once('MotClePictoflora.php'); |
|
class SupprimerMotCle { |
|
private $conteneur; |
91,18 → 93,17 |
* @param $id_mot_cle string identifiant de mot clé |
* */ |
private function supprimerMotCle($id_mot_cle) { |
|
$valeurs_a_supprimer = ''; |
|
$requete = 'UPDATE del_image_tag '. |
'SET actif = 0, date_modification = NOW() '. |
'WHERE id_tag ='.$this->bdd->proteger($id_mot_cle); |
$retour = $this->bdd->requeter(sprintf('UPDATE del_image_tag '. |
'SET actif = 0, date_modification = NOW() '. |
'WHERE id_tag = %d', |
intval($id_mot_cle))); |
|
$retour = $this->bdd->requeter($requete); |
if ($retour == null) { |
$e = 'Erreur inopinée lors de la suppression'; |
throw new Exception($e, RestServeur::HTTP_CODE_ERREUR); |
} |
|
MotClePictoflora::updateStats($this->bdd, $id_mot_cle); |
return null; |
} |
} |