|
|
|
@ -15,7 +15,7 @@ class TaskGateway
|
|
|
|
|
// functions
|
|
|
|
|
// code de retour pour les fonctions i,u,d?
|
|
|
|
|
public function insert(Task $t){
|
|
|
|
|
$query='INSERT INTO Tache VALUES (:id,:titre,:descript,NULL,NULL,:priorite,:idList)';
|
|
|
|
|
$query='INSERT INTO Tache VALUES (:id,:titre,:descript,NULL,NULL,:priorite,:idList,NULL)';
|
|
|
|
|
|
|
|
|
|
$this->con->executeQuery($query, array(
|
|
|
|
|
':id'=> array($t->get_id(),PDO::PARAM_STR),
|
|
|
|
|