public static function Botcha::setForm in BOTCHA Spam Prevention 6.2
Same name and namespace in other branches
- 7.2 controller/botcha.controller.inc \Botcha::setForm()
Sets form to the $_SESSION.
Parameters
BotchaForm $form:
5 calls to Botcha::setForm()
- Botcha::getForm in controller/
botcha.controller.inc - Gets a form from cache. If it does not exists in cache - gets from database. If it does not exists there also - returns new form or BotchaFormNone depending on input parameter.
- Botcha::getForms in controller/
botcha.controller.inc - Get a list of available BOTCHA form objects.
- BotchaFormAbstract::save in controller/
botcha_form.controller.inc - BotchaFormAbstract::setRecipebook in controller/
botcha_form.controller.inc - BotchaFormAbstract::unsetRecipebook in controller/
botcha_form.controller.inc
File
- controller/
botcha.controller.inc, line 318 - Contains Botcha class.
Class
- Botcha
- Singleton realization of botcha application.
Code
public static function setForm($form) {
//self::$forms[$form->id] = $form;
$_SESSION[self::BOTCHA_SESSION_FORMS][$form->id] = serialize($form);
}