function BotchaFormAbstract::unsetRecipebook in BOTCHA Spam Prevention 6.2
Same name and namespace in other branches
- 7.2 controller/botcha_form.controller.inc \BotchaFormAbstract::unsetRecipebook()
File
- controller/
botcha_form.controller.inc, line 56 - 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
function unsetRecipebook() {
// @todo Refactor unsetting recipebook. The constant is here because we need to differ the case when the recipe book is not set at all and the case when it is set to none.
// @see getRecipebook()
$this->recipebook = 'none';
// Save changed state.
Botcha::setForm($this);
return $this;
}