From 93a3c56d12159cfae63abaf67ebb8742c80f5c34 Mon Sep 17 00:00:00 2001 From: "nicolas.franco" Date: Wed, 7 Dec 2022 19:25:58 +0100 Subject: [PATCH] isDone and done counter added v2 --- controller/FrontCtrl.php | 8 ++++++-- dal/TaskGateway.php | 2 +- tests/test.php | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/controller/FrontCtrl.php b/controller/FrontCtrl.php index 69007d5..0596c32 100644 --- a/controller/FrontCtrl.php +++ b/controller/FrontCtrl.php @@ -1,3 +1,7 @@ \ No newline at end of file +class FrontCtrl +{ + $listeAction_User=array(); + $listeAction_Visiteur; +} +?> diff --git a/dal/TaskGateway.php b/dal/TaskGateway.php index 1601aed..7969440 100644 --- a/dal/TaskGateway.php +++ b/dal/TaskGateway.php @@ -3,7 +3,7 @@ require_once("Connection.php"); include_once("../business/Task.php"); class TaskGateway - { +{ // connection attribute public Connection $con; diff --git a/tests/test.php b/tests/test.php index eb796b2..86af293 100644 --- a/tests/test.php +++ b/tests/test.php @@ -1,5 +1,6 @@ 2do test"; @@ -29,3 +30,6 @@ $mt->addTask('6','tacheModel','desc.','urgent','001'); //$tasks = $mt->getAllTask(); /*foreachh($tasks as $i) echo $i->get_id()."
"; */ + +$l1 = new ListTask('001','todo1' ,'nifranco'); +