function api_delete() {\r
$exploitantManager = new PdoExploitantManager();\r
$produitManager = new PdoProduitManager();\r
+ $historiqueManager = new PdoHistoriqueManager();\r
\r
- switch ($_GET['method']) {\r
+ // OPERATION DE SUPPRESSION UNIQUEMENT VIA INTERFACE WEBADMIN :\r
+ // -> Pour le moment AW a accès à la db directement, donc pas besoin de WS\r
+\r
+ /*switch ($_GET['method']) {\r
case 'remove_exploitant' :\r
- $exploitant = new Exploitant($_GET['exploitant']['id'], $_GET['exploitant']['nom'], $_GET['exploitant']['reference'], $_GET['exploitant']['produits']);\r
+ $exploitant = new Exploitant(\r
+ $_GET['exploitant']['id'],\r
+ $_GET['exploitant']['nom'],\r
+ $_GET['exploitant']['reference'],\r
+ $_GET['exploitant']['produits']\r
+ );\r
$exploitantManager -> removeExploitant($exploitant);\r
break;\r
+\r
case 'remove_produit' :\r
- $produit = new Produit($_GET['produit']['id'], $_GET['produit']['fqdn'], $_GET['produit']['nom'], $_GET['produit']['version']);\r
+ $produit = new Produit(\r
+ $_GET['produit']['id'], \r
+ $_GET['produit']['nom'],\r
+ $_GET['produit']['exploitant'], \r
+ $_GET['produit']['reference'], \r
+ $_GET['produit']['version']\r
+ $_GET['produit']['historique']\r
+ );\r
$produitManager -> removeProduit($produit);\r
break;\r
- }\r
+ \r
+ case 'remove_historique' :\r
+ $historique = new Historique(\r
+ $_GET['historique']['id'],\r
+ $_GET['historique']['installation']\r
+ );\r
+ $historiqueManager -> removeHistorique($historique);\r
+ break;\r
+ }*/\r
}\r
\r
?>
\ No newline at end of file