PHP 클래스 RecaptchaPlugin, vanilla

상속: extends Plugin
파일 보기 프로젝트 열기: vanilla/vanilla

보호된 프로퍼티들

프로퍼티 타입 설명
$privateKey string reCAPTCHA private key
$publicKey string reCAPTCHA public key

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Plugin initialization.
public __construct ( )

captcha_get_handler() 공개 메소드

Hook to return captcha submission data.
public captcha_get_handler ( Gdn_PluginManager $sender )
$sender Gdn_PluginManager

captcha_isEnabled_handler() 공개 메소드

Hook to indicate a captcha service is available.
public captcha_isEnabled_handler ( Gdn_PluginManager $sender, array $args )
$sender Gdn_PluginManager
$args array

captcha_render_handler() 공개 메소드

THIS METHOD ECHOS DATA
public captcha_render_handler ( Gdn_Controller $sender )
$sender Gdn_Controller

captcha_settings_handler() 공개 메소드

THIS METHOD ECHOS DATA
public captcha_settings_handler ( SettingsController $sender )
$sender SettingsController

captcha_validate_handler() 공개 메소드

Hook to validate captchas.
public captcha_validate_handler ( Gdn_PluginManager $sender ) : boolean
$sender Gdn_PluginManager
리턴 boolean

gdn_form_captcha_handler() 공개 메소드

THIS METHOD ECHOS DATA
public gdn_form_captcha_handler ( Gdn_Form $sender ) : string
$sender Gdn_Form
리턴 string

getPrivateKey() 공개 메소드

Get private key from memory.
public getPrivateKey ( ) : string
리턴 string

getPublicKey() 공개 메소드

Get public key from memory.
public getPublicKey ( ) : string
리턴 string

setPrivateKey() 공개 메소드

Override private key in memory.
public setPrivateKey ( string $key )
$key string

setPublicKey() 공개 메소드

Override public key in memory.
public setPublicKey ( string $key )
$key string

settingsController_registration_handler() 공개 메소드

Hook (controller) to manage captcha config.
public settingsController_registration_handler ( SettingsController $sender )
$sender SettingsController

setup() 공개 메소드

On plugin enable.
public setup ( )

validateCaptcha() 공개 메소드

Validate a reCAPTCHA submission.
public validateCaptcha ( string $captchaText ) : boolean
$captchaText string
리턴 boolean

프로퍼티 상세

$privateKey 보호되어 있는 프로퍼티

reCAPTCHA private key
protected string $privateKey
리턴 string

$publicKey 보호되어 있는 프로퍼티

reCAPTCHA public key
protected string $publicKey
리턴 string