From 6311b45d19a7e06876561befe62dff4d2d464094 Mon Sep 17 00:00:00 2001 From: Anna BOUDOUL Date: Wed, 23 Nov 2022 19:12:55 +0100 Subject: [PATCH] Business class --- business/ListTask.php | 27 ++++++++ business/Task.php | 63 +++++++++++++++++++ business/List.php => controller/FrontCtrl.php | 0 3 files changed, 90 insertions(+) create mode 100644 business/ListTask.php rename business/List.php => controller/FrontCtrl.php (100%) diff --git a/business/ListTask.php b/business/ListTask.php new file mode 100644 index 0000000..d4c6a4d --- /dev/null +++ b/business/ListTask.php @@ -0,0 +1,27 @@ +id = $id; + $this->taches = $taches; + } + + function get_id() { + return $this->id; + } + + function set_id($id) { + $this->id = $id; + } + + function get_taches() { + return $this->taches; + } + + function set_taches($taches) { + $this->taches = $taches; + } + } +?> \ No newline at end of file diff --git a/business/Task.php b/business/Task.php index e69de29..3dc7f69 100644 --- a/business/Task.php +++ b/business/Task.php @@ -0,0 +1,63 @@ +titre = $titre; + $this->description = $description; + } + + function get_id() { + return $this->id; + } + + function set_id($id) { + $this->id = $id; + } + + function get_titre() { + return $this->titre; + } + + function set_titre($titre) { + $this->titre = $titre; + } + + function get_description() { + return $this->description; + } + + function set_description($description) { + $this->description = $description; + } + + function get_dateDeb() { + return $this->dateDeb; + } + + function set_dateDeb($dateDeb) { + $this->dateDeb = $dateDeb; + } + + function get_dateFin() { + return $this->dateFin; + } + + function set_dateFin($dateFin) { + $this->dateFin = $dateFin; + } + + function get_priorite() { + return $this->priorite; + } + + function set_priorite($priorite) { + $this->priorite = $priorite; + } + } +?> \ No newline at end of file diff --git a/business/List.php b/controller/FrontCtrl.php similarity index 100% rename from business/List.php rename to controller/FrontCtrl.php