public static function Botcha::setRecipebook in BOTCHA Spam Prevention 7.2
Same name and namespace in other branches
- 6.2 controller/botcha.controller.inc \Botcha::setRecipebook()
Sets recipe book to the cache.
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
File
- controller/
botcha.controller.inc, line 382 - Contains Botcha class.
Class
- Botcha
- Singleton realization of botcha application.
Code
public static function setRecipebook($recipebook) {
$_SESSION[self::BOTCHA_SESSION_RECIPEBOOKS][$recipebook->id] = serialize($recipebook);
}