Inherited Variables
Inherited Constants
Inherited Methods
Class: AbstractController
- AbstractController::__construct()
- class constructor
- AbstractController::index()
- index
Class Details
Handles requests for information about the user's favorite foods, saved specials, and saved recipes.
Tags:
- author - Monte Ohrt
[ Top ]
Class Variables
Class Methods
addFood
void addFood(
string
$foodName)
[line 120]
Adds a favorite food to the user's profile.
Parameters:
- string $foodName - The food item to add.
[ Top ]
addRecipe
void addRecipe(
int
$recipeId)
[line 49]
Adds a recipe to the user's profile.
Parameters:
- int $recipeId - The recipe id to add.
[ Top ]
addSpecial
void addSpecial(
int
$specialId)
[line 25]
Adds a special to the user's profile.
Parameters:
- int $specialId - The special id to add.
[ Top ]
removeFood
void removeFood(
string
$foodName)
[line 144]
Removes a favorite food from the user's profile.
Parameters:
- string $foodName - The food item to remove.
[ Top ]
removeRecipe
void removeRecipe(
int
$recipeId)
[line 97]
Removes a recipe from the user's profile.
Parameters:
- int $recipeId - The recipe id to remove.
[ Top ]
removeSpecial
void removeSpecial(
int
$specialId)
[line 74]
Removes a special from the user's profile.
Parameters:
- int $specialId - The special id to remove.
[ Top ]