You are here

public static function Botcha::setRecipebook in BOTCHA Spam Prevention 6.2

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

Sets recipe book to the $_SESSION.

Parameters

BotchaRecipebookAbstract $recipebook:

8 calls to Botcha::setRecipebook()
Botcha::getRecipebook in controller/botcha.controller.inc
Gets a recipe book from cache. If it does not exists in cache - gets from database. If it does not exists there also - returns new recipe book or BotchaRecipebookNone depending on input parameter.
Botcha::getRecipebooks in controller/botcha.controller.inc
Get a list of all BOTCHA recipe book objects.
BotchaRecipebookAbstract::setDescription in controller/botcha_recipebook.controller.inc
BotchaRecipebookAbstract::setForm in controller/botcha_recipebook.controller.inc
BotchaRecipebookAbstract::setRecipe in controller/botcha_recipebook.controller.inc

... See full list

File

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

Class

Botcha
Singleton realization of botcha application.

Code

public static function setRecipebook($recipebook) {

  //self::$recipebooks[$recipebook->id] = $recipebook;
  $_SESSION[self::BOTCHA_SESSION_RECIPEBOOKS][$recipebook->id] = serialize($recipebook);
}