remove done TODOs
This commit is contained in:
parent
764cacdf14
commit
1d9079398b
@ -9,7 +9,6 @@ final class RecipeController
|
|||||||
throw new HTTPSpecialCaseException(404);
|
throw new HTTPSpecialCaseException(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO MAKE THE VIEW USE THE NEW DATA FORMAT
|
|
||||||
$O_recipe = RecipeModel::getByID($A_urlParams[0]);
|
$O_recipe = RecipeModel::getByID($A_urlParams[0]);
|
||||||
if ($O_recipe === null) {
|
if ($O_recipe === null) {
|
||||||
throw new HTTPSpecialCaseException(404);
|
throw new HTTPSpecialCaseException(404);
|
||||||
@ -209,7 +208,6 @@ final class RecipeController
|
|||||||
private function searchQueryView(Array $A_urlParams = null, Array $A_postParams = null, Array $A_getParams = null)
|
private function searchQueryView(Array $A_urlParams = null, Array $A_postParams = null, Array $A_getParams = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
//TODO change this when the function will return object array
|
|
||||||
$A_results = RecipeModel::searchRecipesByName($A_getParams["query"]);
|
$A_results = RecipeModel::searchRecipesByName($A_getParams["query"]);
|
||||||
|
|
||||||
View::show("recipe/search", array(
|
View::show("recipe/search", array(
|
||||||
|
@ -103,8 +103,6 @@ final class UserController
|
|||||||
header("Location: /");
|
header("Location: /");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kept for compatibility purposes
|
|
||||||
// TODO do a redirect route once implemented
|
|
||||||
public function viewAction(Array $A_urlParams = null, Array $A_postParams = null)
|
public function viewAction(Array $A_urlParams = null, Array $A_postParams = null)
|
||||||
{
|
{
|
||||||
return self::defaultAction($A_urlParams, $A_postParams);
|
return self::defaultAction($A_urlParams, $A_postParams);
|
||||||
@ -120,7 +118,6 @@ final class UserController
|
|||||||
|
|
||||||
$O_user = UserModel::getByID($_SESSION["ID"]);
|
$O_user = UserModel::getByID($_SESSION["ID"]);
|
||||||
|
|
||||||
//TODO Convert User into array
|
|
||||||
return View::show("user/edit", array("USER" => $O_user));
|
return View::show("user/edit", array("USER" => $O_user));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,7 +170,6 @@ final class RecipeModel
|
|||||||
return explode("\n\n", str_replace("\r", "", $this->S_INSTRUCTIONS));
|
return explode("\n\n", str_replace("\r", "", $this->S_INSTRUCTIONS));
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: return array object
|
|
||||||
public static function searchRecipesByName($S_query)
|
public static function searchRecipesByName($S_query)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user