\MollomField
Mollom Form Field.
The which is inserted into your form fields via the
spam protector class.
Synopsis
class MollomField
extends FormField
{
- // members
- private array $fieldMapping = ;
- private string $captchaType = 'image';
- private static boolean $always_show_captcha = false;
- private static boolean $force_check_on_members = false;
- protected string $template = 'MollomField';
- // methods
- public string getCaptchaAudioFile()
- public string getCaptcha()
- public void setCaptchaType()
- public string getCaptchaType()
- protected boolean exemptUser()
- public boolean getShowCaptcha()
- public string Title()
- public MollomSpamProtector getMollom()
- public array getSpamMappedData()
- public boolean validate()
- private void requestMollom()
- private void clearMollomSession()
- public void setFieldMapping()
Hierarchy
Extends
- FormField
Members
private
- $always_show_captcha
- $captchaType — string
- $fieldMapping — array
- $force_check_on_members
protected
- $template — string
Methods
private
- clearMollomSession() — Helper to quickly clear all the mollom session settings. For example after a successful post.
- requestMollom()
protected
- exemptUser() — Determines if the current user is exempt from spam detection
public
- Title() — Returns the field label if showing captcha - used by templates.
- getCaptcha() — Returns the captcha url if we need to get it from the user
- getCaptchaAudioFile()
- getCaptchaType() — Returns the captcha type that has been set. Default is "image".
- getMollom()
- getShowCaptcha() — Return if we should show the captcha to the user.
- getSpamMappedData()
- setCaptchaType() — Set the captcha type. Mollom supports "image" and "audio" types.
- setFieldMapping() — Set the fields to map spam protection too
- validate() — Validate the captcha information