function delete($id_thes = 0) { global $dbh; global $msg; global $pmb_synchro_rdf; if (!$id_thes) { $id_thes = $this->id_thesaurus; } if ($pmb_synchro_rdf) { $synchro_rdf = new synchro_rdf(); } $q = "select id_noeud from noeuds where num_thesaurus = '" . $id_thes . "' "; $r = mysql_query($q, $dbh); while ($row = mysql_fetch_row($r)) { noeuds::delete($row[0]); /*$q1 = "delete from categories where num_noeud = '".$row[0]."' "; $r1 = mysql_query($q1, $dbh); $q2 = "delete from noeuds where id_noeud = '".$row[0]."' "; $r2 = mysql_query($q2, $dbh); */ if ($pmb_synchro_rdf) { $synchro_rdf->delConcept($row[0]); } } $q = "delete from thesaurus where id_thesaurus = '" . $id_thes . "' "; $r = mysql_query($q, $dbh); if ($pmb_synchro_rdf) { $synchro_rdf->delThesaurusDefinition($id_thes); } }