class CRM_Utils_ReCAPTCHA

Properties

protected $_captcha
protected $_name
protected $_url
protected $_phrase

Methods

static object
singleton()

Singleton function used to manage this object.

static 
hasSettingsAvailable()

Check if reCaptcha settings is avilable to add on form.

static 
hasToAddForcefully()

Check if reCaptcha has to be added on form forcefully.

static 
add(CRM_Core_Form $form)

Add element to form.

static 
enableCaptchaOnForm(CRM_Core_Form $form)

Enable ReCAPTCHA on Contribution form

Details

at line 58
static object singleton()

Singleton function used to manage this object.

Return Value

object

at line 68
static hasSettingsAvailable()

Check if reCaptcha settings is avilable to add on form.

at line 79
static hasToAddForcefully()

Check if reCaptcha has to be added on form forcefully.

at line 92
static add(CRM_Core_Form $form)

Add element to form.

Parameters

CRM_Core_Form $form

at line 128
static enableCaptchaOnForm(CRM_Core_Form $form)

Enable ReCAPTCHA on Contribution form

Parameters

CRM_Core_Form $form