From 87252f0ed752dc5e89a9f3810467a7e1927133aa Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Wed, 25 Jan 2023 20:16:53 +0100 Subject: [PATCH] Revert "replace DESCR with DESC" This reverts commit 152201870866d417ac5ae16d067904464b18fdeb. --- Models/RecipeModel.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Models/RecipeModel.php b/Models/RecipeModel.php index 991e2fe..5188e10 100644 --- a/Models/RecipeModel.php +++ b/Models/RecipeModel.php @@ -6,7 +6,7 @@ final class RecipeModel public $S_NAME = null; public $I_TIME = null; public $I_COST = null; - public $S_DESC = null; + public $S_DESCR = null; public $S_RECIPE = null; public $I_DIFFICULTY_ID = null; public $I_AUTHOR_ID = null; @@ -16,12 +16,12 @@ final class RecipeModel public $A_APPRS = null; public $A_INGREDIENTS = null; - public function __construct($S_NAME, $I_TIME, $I_COST, $S_DESC, $S_RECIPE, $I_DIFFICULTY_ID, $I_AUTHOR_ID) + public function __construct($S_NAME, $I_TIME, $I_COST, $S_DESCR, $S_RECIPE, $I_DIFFICULTY_ID, $I_AUTHOR_ID) { $this->S_NAME = $S_NAME; $this->I_TIME = $I_TIME; $this->I_COST = $I_COST; - $this->S_DESC = $S_DESC; + $this->S_DESCR = $S_DESCR; $this->S_RECIPE = $S_RECIPE; $this->I_DIFFICULTY_ID = $I_DIFFICULTY_ID; $this->I_AUTHOR_ID = $I_AUTHOR_ID; @@ -34,7 +34,7 @@ final class RecipeModel $stmt->bindParam("name", $this->S_NAME); $stmt->bindParam("time", $this->I_TIME); $stmt->bindParam("cost", $this->I_COST); - $stmt->bindParam("desc", $this->S_DESC); + $stmt->bindParam("desc", $this->S_DESCR); $stmt->bindParam("recipe", $this->S_RECIPE); $stmt->bindParam("difficulty_id", $this->I_DIFFICULTY_ID); $stmt->bindParam("author_id", $this->I_AUTHOR_ID); @@ -49,7 +49,7 @@ final class RecipeModel $stmt->bindParam("name", $this->S_NAME); $stmt->bindParam("time", $this->I_TIME); $stmt->bindParam("cost", $this->I_COST); - $stmt->bindParam("desc", $this->S_DESC); + $stmt->bindParam("desc", $this->S_DESCR); $stmt->bindParam("recipe", $this->S_RECIPE); $stmt->bindParam("difficulty_id", $this->I_DIFFICULTY_ID); $stmt->bindParam("author_id", $this->I_AUTHOR_ID); @@ -63,7 +63,7 @@ final class RecipeModel } private static function createFromRow($A_row, $I_ID){ - $O_recipe = new RecipeModel($A_row["NAME"], $A_row["TIME"], $A_row["COST"], $A_row["DESC"], $A_row["RECIPE"], $A_row["DIFFICULTY_ID"], $A_row["AUTHOR_ID"]); + $O_recipe = new RecipeModel($A_row["NAME"], $A_row["TIME"], $A_row["COST"], $A_row["DESCR"], $A_row["RECIPE"], $A_row["DIFFICULTY_ID"], $A_row["AUTHOR_ID"]); $O_recipe->I_ID = $I_ID; return $O_recipe; }