Version: current

# Class PhpCaptchaProtector

Protecter class to handle spam protection interface

  PhpCaptchaProtector implements SpamProtector

Package: recaptcha
Located at phpcaptcha/code/PhpCaptchaProtector.php

## Methods summary

`public string` | # `getFormField( mixed $name = "PhpCaptchaField", mixed $title = "Captcha", mixed $value = null, mixed $form = null, mixed $rightTitle = null )` Return the Field that we will use in this protector Return the Field that we will use in this protector #### Returns `string` string #### Implementation of `SpamProtector::getFormField()`
`public boolean` | # `sendFeedback( mixed $object = null, mixed $feedback = "" )` Needed for the interface. Recaptcha does not have a feedback loop Needed for the interface. Recaptcha does not have a feedback loop #### Returns `boolean` boolean #### Implementation of `SpamProtector::sendFeedback()`
`public` | # `getFieldName( )`
`public` | # `updateForm( mixed $form, mixed $before = null, mixed $fieldsToSpamServiceMapping = null )` Update a form with the Simple Spam Field Protection Update a form with the Simple Spam Field Protection
`public` | # `setFieldMapping( mixed $fieldToPostTitle, mixed $fieldsToPostBody = null, mixed $fieldToAuthorName = null, mixed $fieldToAuthorUrl = null, mixed $fieldToAuthorEmail = null, mixed $fieldToAuthorOpenId = null )` Set which fields need to be mapped for protection Set which fields need to be mapped for protection

### Magic methods summary

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -