class BotchaRecipebookNone in BOTCHA Spam Prevention 6.3
Same name and namespace in other branches
- 6.2 controller/botcha_recipebook.controller.inc \BotchaRecipebookNone
- 7.2 controller/botcha_recipebook.controller.inc \BotchaRecipebookNone
- 7.3 controller/recipebook/botcha.recipebook.controller.inc \BotchaRecipebookNone
Dummy class, created for data consistency and for interface unifying. When there is no recipe book binded to form, this class is used as a handler. It has no logic at all - by design.
Hierarchy
- class \BotchaRecipebook
- class \BotchaRecipebookNone
Expanded class hierarchy of BotchaRecipebookNone
File
- controller/
recipebook/ botcha.recipebook.controller.inc, line 335 - Controller layer of the BotchaRecipebook objects.
View source
class BotchaRecipebookNone extends BotchaRecipebook {
// @todo Refactor this since it is duplication.
public function __construct($id = NULL) {
$this->id = !empty($id) ? $id : 'none';
$this
->setTitle('None');
$this
->setDescription('Help class: "Null object" pattern.');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BotchaRecipebook:: |
public | property | Description of the recipe book. | |
BotchaRecipebook:: |
protected | property | ||
BotchaRecipebook:: |
public | property | Identifier of the recipe book. | |
BotchaRecipebook:: |
protected | property | ||
BotchaRecipebook:: |
public | property | A title of the book. | |
BotchaRecipebook:: |
public | function | ||
BotchaRecipebook:: |
public | function | ||
BotchaRecipebook:: |
public | function | @todo BotchaRecipebook getForms Description. | |
BotchaRecipebook:: |
public | function | @todo BotchaRecipebook getRecipes Description. | |
BotchaRecipebook:: |
public | function | ||
BotchaRecipebook:: |
public | function | Handle form depending on the result of spam check. | |
BotchaRecipebook:: |
public | function | ||
BotchaRecipebook:: |
public | function | Spam check. Currently the logic is as follows: if we could find a recipe that failed spam check - then we consider this form submission as spam and decline it. | |
BotchaRecipebook:: |
public | function | ||
BotchaRecipebook:: |
public | function | ||
BotchaRecipebook:: |
public | function | ||
BotchaRecipebook:: |
public | function | ||
BotchaRecipebook:: |
public | function | ||
BotchaRecipebook:: |
public | function | ||
BotchaRecipebookNone:: |
public | function |
Overrides BotchaRecipebook:: |