Свойство | Type | Description | |
---|---|---|---|
$privateKey | string | reCAPTCHA private key | |
$publicKey | string | reCAPTCHA public key |
Méthode | Description | |
---|---|---|
__construct ( ) | Plugin initialization. | |
captcha_get_handler ( Gdn_PluginManager $sender ) | Hook to return captcha submission data. | |
captcha_isEnabled_handler ( Gdn_PluginManager $sender, array $args ) | Hook to indicate a captcha service is available. | |
captcha_render_handler ( Gdn_Controller $sender ) | Hook (view) to render a captcha. | |
captcha_settings_handler ( SettingsController $sender ) | Hook (view) to manage captcha config. | |
captcha_validate_handler ( Gdn_PluginManager $sender ) : boolean | Hook to validate captchas. | |
gdn_form_captcha_handler ( Gdn_Form $sender ) : string | Display reCAPTCHA entry field. | |
getPrivateKey ( ) : string | Get private key from memory. | |
getPublicKey ( ) : string | Get public key from memory. | |
setPrivateKey ( string $key ) | Override private key in memory. | |
setPublicKey ( string $key ) | Override public key in memory. | |
settingsController_registration_handler ( SettingsController $sender ) | Hook (controller) to manage captcha config. | |
setup ( ) | On plugin enable. | |
validateCaptcha ( string $captchaText ) : boolean | Validate a reCAPTCHA submission. |
public captcha_get_handler ( Gdn_PluginManager $sender ) | ||
$sender | Gdn_PluginManager |
public captcha_isEnabled_handler ( Gdn_PluginManager $sender, array $args ) | ||
$sender | Gdn_PluginManager | |
$args | array |
public captcha_render_handler ( Gdn_Controller $sender ) | ||
$sender | Gdn_Controller |
public captcha_settings_handler ( SettingsController $sender ) | ||
$sender | SettingsController |
public captcha_validate_handler ( Gdn_PluginManager $sender ) : boolean | ||
$sender | Gdn_PluginManager | |
Résultat | boolean |
public gdn_form_captcha_handler ( Gdn_Form $sender ) : string | ||
$sender | Gdn_Form | |
Résultat | string |
public getPrivateKey ( ) : string | ||
Résultat | string |
public getPublicKey ( ) : string | ||
Résultat | string |
public setPrivateKey ( string $key ) | ||
$key | string |
public setPublicKey ( string $key ) | ||
$key | string |
public settingsController_registration_handler ( SettingsController $sender ) | ||
$sender | SettingsController |
public validateCaptcha ( string $captchaText ) : boolean | ||
$captchaText | string | |
Résultat | boolean |
protected string $privateKey | ||
Résultat | string |