public function BotchaFormAbstract::save in BOTCHA Spam Prevention 7.2
Same name and namespace in other branches
- 6.2 controller/botcha_form.controller.inc \BotchaFormAbstract::save()
1 method overrides BotchaFormAbstract::save()
- BotchaFormNone::save in controller/
botcha_form.controller.inc
File
- controller/
botcha_form.controller.inc, line 125 - Controller layer of the BotchaForm objects.
Class
- BotchaFormAbstract
- Special class to abstract operations with form_id. Casual usage is getting all recipe books by form_id. It could be done by adding one more method to Botcha (such as "getRecipebookByFormId") but in long-time perspective it is…
Code
public function save() {
// Save our form to cache.
Botcha::setForm($this);
// Save form to DB.
BotchaFormModel::save($this);
// Clean session to fetch new values.
Botcha::clean();
return $this;
}