You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
989 B
30 lines
989 B
<?php
|
|
|
|
class EnigmeGateway
|
|
{
|
|
private Connection $con;
|
|
|
|
/**
|
|
* @param Connection $con
|
|
*/
|
|
|
|
public function __construct(Connection $con)
|
|
{
|
|
$this->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)
|
|
))
|
|
}
|
|
*/
|
|
}
|
|
?>
|