|
|
@ -84,7 +84,7 @@ class ListeGateway
|
|
|
|
$this->con->executeQuery($queryTaches, array(':idListe' => array($idListe, PDO::PARAM_INT)));
|
|
|
|
$this->con->executeQuery($queryTaches, array(':idListe' => array($idListe, PDO::PARAM_INT)));
|
|
|
|
$resultsTaches = $this->con->getResults();
|
|
|
|
$resultsTaches = $this->con->getResults();
|
|
|
|
foreach($resultsTaches as $rowTaches){
|
|
|
|
foreach($resultsTaches as $rowTaches){
|
|
|
|
if($rowTaches['complete']=="0"){
|
|
|
|
if($rowTaches['completed']==="0"){
|
|
|
|
$taches[] = new Tache($rowTaches['id'], $rowTaches['name'], $rowTaches['content'],false);
|
|
|
|
$taches[] = new Tache($rowTaches['id'], $rowTaches['name'], $rowTaches['content'],false);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$taches[] = new Tache($rowTaches['id'], $rowTaches['name'], $rowTaches['content'],true);
|
|
|
|
$taches[] = new Tache($rowTaches['id'], $rowTaches['name'], $rowTaches['content'],true);
|
|
|
@ -92,8 +92,8 @@ class ListeGateway
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$listes[] = new Liste($row['id'], $row['name'],false, null, $taches);
|
|
|
|
$listes[] = new Liste($row['id'], $row['name'],false, null, $taches);
|
|
|
|
$taches = null;
|
|
|
|
$taches = null;
|
|
|
|
echo json_encode ($listes);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "haaaaaaaaaaaaaaaa";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(PDOException $Exception) {
|
|
|
|
catch(PDOException $Exception) {
|
|
|
|
echo 'erreur';
|
|
|
|
echo 'erreur';
|
|
|
|