class BotchaFormNone in BOTCHA Spam Prevention 6.3
Same name and namespace in other branches
- 6.2 controller/botcha_form.controller.inc \BotchaFormNone
- 7.2 controller/botcha_form.controller.inc \BotchaFormNone
- 7.3 controller/form/botcha.form.controller.inc \BotchaFormNone
Dummy class, created for data consistency and for interface unifying. When there is no form, this class is used as a handler. It has no logic at all - by design.
Hierarchy
- class \BotchaForm
- class \BotchaFormNone
Expanded class hierarchy of BotchaFormNone
File
- controller/
form/ botcha.form.controller.inc, line 211 - Controller layer of the BotchaForm objects.
View source
class BotchaFormNone extends BotchaForm {
// @todo Refactor this since it is duplication.
public function __construct($form_id = NULL) {
$this->id = !empty($form_id) ? $form_id : 'none';
}
public function getRecipebook() {
// @todo Remove hardcode.
return 'none';
}
public function addAdminLinks(&$form) {
$form_id = $form['form_id']['#value'];
// Apply only to allowed forms.
if (!in_array($form_id, array(
'update_script_selection_form',
'user_login',
'user_login_block',
))) {
parent::addAdminLinks($form);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BotchaForm:: |
protected | property | ||
BotchaForm:: |
protected | function | ||
BotchaForm:: |
public | function | ||
BotchaForm:: |
public | function | ||
BotchaForm:: |
public | function | ||
BotchaForm:: |
function | |||
BotchaFormNone:: |
public | function |
Overrides BotchaForm:: |
|
BotchaFormNone:: |
public | function |
@todo BotchaForm getRecipebook Description. Overrides BotchaForm:: |
|
BotchaFormNone:: |
public | function |
Overrides BotchaForm:: |