|
|
|
@ -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,NULL)';
|
|
|
|
|
$query='INSERT INTO Tache VALUES (:id,:titre,:descript,NULL,NULL,:priorite,:idList,false)';
|
|
|
|
|
|
|
|
|
|
$this->con->executeQuery($query, array(
|
|
|
|
|
':id'=> array($t->get_id(),PDO::PARAM_STR),
|
|
|
|
@ -65,7 +65,7 @@ class TaskGateway
|
|
|
|
|
foreach($results as $row)
|
|
|
|
|
{
|
|
|
|
|
$tabTaches[]=new Task($row['id'],$row['titre'],$row['description'],$row['priorite'],
|
|
|
|
|
$row['idList'],$row['dateDebut'],$row['dateFin']);
|
|
|
|
|
$row['idList'],$row['dateDebut'],$row['dateFin'],$row['isDone']);
|
|
|
|
|
}
|
|
|
|
|
return $tabTaches;
|
|
|
|
|
}
|
|
|
|
|