You are here

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

Same name and namespace in other branches
  1. 7.2 controller/botcha.controller.inc \Botcha::unsetRecipebook()
2 calls to Botcha::unsetRecipebook()
BotchaRecipebookAbstract::delete in controller/botcha_recipebook.controller.inc
BotchaRecipebookNone::save in controller/botcha_recipebook.controller.inc

File

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

Class

Botcha
Singleton realization of botcha application.

Code

public static function unsetRecipebook($recipebook) {

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