|
|
|
@ -15,9 +15,9 @@ class TacheGateway
|
|
|
|
|
$this->con->executeQuery($query, array(':name' => array($t->getName(), PDO::PARAM_STR), ':content' => array($t->getContent(), PDO::PARAM_STR), ':completed' => array($t->getCompleted(), PDO::PARAM_BOOL), ':idList' => array($idList, PDO::PARAM_INT)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function delete(Tache $t): void{
|
|
|
|
|
public function delete(int $id): void{
|
|
|
|
|
$query = "DELETE FROM Tache where id=:id";
|
|
|
|
|
$this->con->executeQuery($query, array(':id' => array($t->getId(), PDO::PARAM_INT)));
|
|
|
|
|
$this->con->executeQuery($query, array(':id' => array($id, PDO::PARAM_INT)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function update(Tache $t): void{
|
|
|
|
|