You are here

public static function Botcha::setRecipe in BOTCHA Spam Prevention 7.2

Same name and namespace in other branches
  1. 6.2 controller/botcha.controller.inc \Botcha::setRecipe()

Sets recipe to the $_SESSION.

Parameters

BotchaRecipe $recipe:

10 calls to Botcha::setRecipe()
Botcha::getRecipe in controller/botcha.controller.inc
Gets a recipe from cache. If it does not exists in cache - gets from database. If it does not exists there also - returns NULL.
Botcha::getRecipes in controller/botcha.controller.inc
Get a list of all BOTCHA recipes objects.
BotchaRecipe::setDescription in controller/botcha_recipe.controller.inc
BotchaRecipe::setMethod in controller/botcha_recipe.controller.inc
BotchaRecipe::setRecipebook in controller/botcha_recipe.controller.inc

... See full list

File

controller/botcha.controller.inc, line 442
Contains Botcha class.

Class

Botcha
Singleton realization of botcha application.

Code

public static function setRecipe($recipe) {
  $_SESSION[self::BOTCHA_SESSION_RECIPES][$recipe->id] = serialize($recipe);
}