+++ /dev/null
-<?php\r
-\r
- // TO-DO : DECIDE TO DELETE THIS OR USE IT\r
- function api_delete() {\r
- $exploitantManager = new PdoExploitantManager();\r
- $instanceManager = new PdoInstanceManager();\r
- $historiqueManager = new PdoAlerteManager();\r
-\r
- // DELETING OBJECTS IS MADE VIA ADMINSTRATION INTERFACE\r
- /*switch ($_GET['method']) {\r
- case 'remove_exploitant' :\r
- $exploitant = new Exploitant(\r
- $_GET['exploitant']['id'],\r
- $_GET['exploitant']['nom'],\r
- $_GET['exploitant']['reference'],\r
- $_GET['exploitant']['instances']\r
- );\r
- $exploitantManager -> removeExploitant($exploitant);\r
- break;\r
-\r
- case 'remove_instance' :\r
- $instance = new Instance(\r
- $_GET['instance']['id'], \r
- $_GET['instance']['nom'],\r
- $_GET['instance']['exploitant'], \r
- $_GET['instance']['reference'], \r
- $_GET['instance']['version']\r
- $_GET['instance']['historique']\r
- );\r
- $instanceManager -> removeInstance($instance);\r
- break;\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