diff --git a/WEB/Controller/EnigmeGateway.php b/WEB/Controller/EnigmeGateway.php new file mode 100644 index 00000000..7046f8d1 --- /dev/null +++ b/WEB/Controller/EnigmeGateway.php @@ -0,0 +1,30 @@ +con = $con; + }/* + public function insert(string $idEnigme, string $admin, string $enonce, string $aide,string $rappel,string $solution,string $test,float $tempsDeResolution){ + $query="INSERT INTO Enigme VALUES ('$idEnigme','$admin','$enonce','$aide','$rappel','$solution','$test','$tempsDeResolution')"; + $this->con->executeQuery($query,array( + ':idEnigme' => array($idEnigme, PDO::PARAM_STR)) + ':admin' => array($admin, PDO::PARAM_STR) + ':enonce' => array($admin, PDO::PARAM_STR) + ':aide'=> array($admin, PDO::PARAM_STR) + ':rappel'=> array($admin, PDO::PARAM_STR) + ':solution'=> array($admin, PDO::PARAM_STR) + ':test'=> array($admin, PDO::PARAM_STR) + => array($admin, PDO::PARAM_STR) + )) + } +*/ +} +?> \ No newline at end of file diff --git a/WEB/Controller/PartieGateway.php b/WEB/Controller/PartieGateway.php new file mode 100644 index 00000000..121edb6a --- /dev/null +++ b/WEB/Controller/PartieGateway.php @@ -0,0 +1,24 @@ +con = $con; + } + public function insert(string $idPartie){ + $query= "INSERT INTO Game VALUES ('$idPartie')"; + $this->con->executeQuery($query, array(':idPartie' => array($idPartie, PDO::PARAM_STR))); + } + public function delete(string $idPartie){ + $query= "DELETE FROM Game WHERE idGame = $idPartie"; + $this->con->executeQuery($query, array(':idPartie' => array($idPartie, PDO::PARAM_STR))); + } +} \ No newline at end of file