Element index for package Models
a
f
g
i
l
p
r
s
u
z
top
top
f
- Favorites_Model
- in file favorites_model.php, class Favorites_Model
Data model for user Favorites. Handles adding, deleting, and retrieving favorites/saved lists.
- filterByZipCode
- in file special_model.php, method Special_Model::filterByZipCode()
Given a list of specials and zip code, filters the specials down to specials which are available in the given zip code.
- favorites_model.php
- procedural page favorites_model.php
top
g
- getArray
- in file user_model.php, method User_Model::getArray()
Gets an associate array. Designed for easy passing data to template.
- getRecipeById
- in file recipe_model.php, method Recipe_Model::getRecipeById()
Retrieves a recipe using its id.
- getRecipesByIngredient
- in file recipe_model.php, method Recipe_Model::getRecipesByIngredient()
Retrieves a list of recipes that match $query (uses recipe ingredients to compare).
- getRecipesByName
- in file recipe_model.php, method Recipe_Model::getRecipesByName()
Retrieves a list of all recipes that match $query (uses recipe name to compare).
- getRecipesForSpecial
- in file recipe_model.php, method Recipe_Model::getRecipesForSpecial()
Retrieves a list of recipes which match the given special id.
- getSavedFoods
- in file favorites_model.php, method Favorites_Model::getSavedFoods()
Retrieves a list of the user's favorite foods.
- getSavedRecipeIds
- in file favorites_model.php, method Favorites_Model::getSavedRecipeIds()
Retrieves a list of the user's saved recipes (ids only).
- getSavedRecipes
- in file favorites_model.php, method Favorites_Model::getSavedRecipes()
Retrieves a list of the user's saved recipes (including associative data).
- getSavedSpecialIds
- in file favorites_model.php, method Favorites_Model::getSavedSpecialIds()
Retrieves a list of the user's saved specials (ids only).
- getSavedSpecials
- in file favorites_model.php, method Favorites_Model::getSavedSpecials()
Retrieves a list of the user's saved specials (including associative data).
- getSpecialById
- in file special_model.php, method Special_Model::getSpecialById()
Retrieves a single special by its id.
- getSpecialsByArea
- in file special_model.php, method Special_Model::getSpecialsByArea()
Retrieves a list of specials available in the given zip code.
- getSpecialsByIngredient
- in file special_model.php, method Special_Model::getSpecialsByIngredient()
Retrieves a list of specials which match $query by the ingredient(s) associated with the special.
- getSpecialsByName
- in file special_model.php, method Special_Model::getSpecialsByName()
Retrieves a list of specials which match $query by name.
- getSpecialsForRecipe
- in file special_model.php, method Special_Model::getSpecialsForRecipe()
Retrieves a list of associate
top
top
l
- login
- in file user_model.php, method User_Model::login()
Logs in the user given username and password.
- logout
- in file user_model.php, method User_Model::logout()
Logs out the currently logged in user.
top
top
top
s
- Special_Model
- in file special_model.php, class Special_Model
Data model for specials. Handles retrieving specials based on various criteria.
- special_model.php
- procedural page special_model.php
top
u
- user_model.php
- procedural page user_model.php
- username
- in file user_model.php, method User_Model::username()
Gets the user's username.
- User_Model
- in file user_model.php, class User_Model
Data model for users. Handles all data-related user functions, and also handles login, logout, and registration.
top