ERXSimpleSpamCheck Class Reference

Inherits er::extensions::components::ERXComponent.

Collaboration diagram for ERXSimpleSpamCheck:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ERXSimpleSpamCheck (WOContext context)
String expectedSpamCheck ()
String id ()
boolean synchronizesVariablesWithBindings ()
void takeValuesFromRequest (WORequest request, WOContext context)

Public Attributes

String _spamCheck

Static Public Attributes

static final String SPAM_CHECK_KEY = "spamCheck"

Private Attributes

String _expectedSpamCheck
String _id


Detailed Description

ERXSimpleSpamCheck generates a display: none text field in your page that has its value filled in with Javascript. When the form submits, if the value in the field does not match the expected value, a validation failure is generated. Your end-users should not notice anything at all, but because the expected value is filled in with Javascript, this will trip up many bots.

Author:
mschrag

Constructor & Destructor Documentation

ERXSimpleSpamCheck ( WOContext  context  ) 


Member Function Documentation

String expectedSpamCheck (  ) 

String id (  ) 

boolean synchronizesVariablesWithBindings (  ) 

void takeValuesFromRequest ( WORequest  request,
WOContext  context 
)

Calls _checkAccess prior to super.takeValuesFromRequest.

Reimplemented from ERXComponent.


Member Data Documentation

String _id [private]

final String SPAM_CHECK_KEY = "spamCheck" [static]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:06 2012 for Project Wonder by  doxygen 1.5.8