PHP 클래스 RecaptchaHelper

상속: extends AppHelper
파일 보기 프로젝트 열기: cakedc/recaptcha

공개 프로퍼티들

프로퍼티 타입 설명
$apiUrl string API Url
$helpers array View helpers

보호된 프로퍼티들

프로퍼티 타입 설명
$callback string Callback function name (fot explicit rendering)
$explicit array Items to render explicitly

공개 메소드들

메소드 설명
afterRender ( $viewFile )
display ( array $options = [] ) : string Displays the Recaptcha input
mailHide ( string $email ) : string Gets html to display an email address given a public an private key to get a key go to: https://www.google.com/recaptcha/mailhide/apikey
mailHideUrl ( string $email = null ) : string Gets the reCAPTCHA Mailhide url for a given email
signupUrl ( string $appName = null ) : string Recaptcha signup URL

비공개 메소드들

메소드 설명
__aesEncrypt ( string $value, string $key ) : string AES Encryption
__aesPad ( string $val ) : string AES Pad
__hideEmailParts ( string $email ) : array Get a part of the email to show
__mailhideUrlbase64 ( string $x ) : string Mail-hide URL

메소드 상세

afterRender() 공개 메소드

public afterRender ( $viewFile )

display() 공개 메소드

Displays the Recaptcha input
public display ( array $options = [] ) : string
$options array An array of options ### Options: - `element` String, name of the view element that can be used instead of the hardcoded HTML structure from this helper - `explicit` reCAPTCHA rendering method. Set to true when rendering multiple reCAPTCHAs on a page - `error` String, optional error message that is displayed using Form::error() - `div` Array of options for the div tag the recaptcha is wrapped with, set to false if you want to disable it - `lang` Forces the widget to render in a specific language - `recaptchaOptions` assoc array of options to pass into RecaptchaOptions var, like 'sitekey' (default is read from Configure::read('Recaptcha.publicKey')), 'theme', 'type', 'size.
리턴 string The resulting mark up

mailHide() 공개 메소드

Gets html to display an email address given a public an private key to get a key go to: https://www.google.com/recaptcha/mailhide/apikey
public mailHide ( string $email ) : string
$email string An email address
리턴 string

mailHideUrl() 공개 메소드

Gets the reCAPTCHA Mailhide url for a given email
public mailHideUrl ( string $email = null ) : string
$email string An email address
리턴 string

signupUrl() 공개 메소드

Recaptcha signup URL
public signupUrl ( string $appName = null ) : string
$appName string An application name
리턴 string A signup url

프로퍼티 상세

$apiUrl 공개적으로 프로퍼티

API Url
public string $apiUrl
리턴 string

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

Callback function name (fot explicit rendering)
protected string $callback
리턴 string

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

Items to render explicitly
protected array $explicit
리턴 array

$helpers 공개적으로 프로퍼티

View helpers
public array $helpers
리턴 array