SilverWare\Recaptcha\Guards\RecaptchaGuard
A spam guard implementation which uses Google Recaptcha for spam prevention.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2018 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class RecaptchaGuard
implements
SpamGuard
{
- // methods
- public $this setName()
- public string getName()
- public $this setTitle()
- public string getTitle()
- public RecaptchaField getFormField()
- public string getDefaultName()
- public string getDefaultTitle()
Hierarchy
Implements
- SilverWare\SpamGuard\Interfaces\SpamGuard
Members
protected
- $name
—
string
The default name for the form field. - $title
—
string
The default title for the form field.
Methods
public
- getDefaultName() — Answers the default name for the form field.
- getDefaultTitle() — Answers the default title for the form field.
- getFormField() — Answers the form field used for implementing the spam guard.
- getName() — Answers the value of the name attribute.
- getTitle() — Answers the value of the title attribute.
- setName() — Defines the value of the name attribute.
- setTitle() — Defines the value of the title attribute.