|
|
|
@ -16,12 +16,13 @@ class TaskGateway
|
|
|
|
|
// functions
|
|
|
|
|
// code de retour pour les fonctions i,u,d?
|
|
|
|
|
public function insertT(Task $t){
|
|
|
|
|
$query='INSERT INTO Tache VALUES (:id,:titre,:descript,NULL,NULL,:priorite,:idList,false)';
|
|
|
|
|
|
|
|
|
|
$query='INSERT INTO Tache VALUES (:id,:titre,:descript,:dateDeb,:dateFin,:priorite,:idList,false)';
|
|
|
|
|
$this->con->executeQuery($query, array(
|
|
|
|
|
':id'=> array($t->get_id(),PDO::PARAM_STR),
|
|
|
|
|
':titre'=> array($t->get_titre(),PDO::PARAM_STR),
|
|
|
|
|
':descript'=> array($t->get_description(),PDO::PARAM_STR),
|
|
|
|
|
':dateDeb'=> array($t->get_dateDeb(),PDO::PARAM_STR),
|
|
|
|
|
':dateFin'=> array($t->get_dateFin(),PDO::PARAM_STR),
|
|
|
|
|
':priorite'=> array($t->get_priorite(),PDO::PARAM_STR),
|
|
|
|
|
':idList'=> array($t->get_idList(),PDO::PARAM_STR) ));
|
|
|
|
|
|
|
|
|
|