PHP Class BcCaptchaComponent

Inheritance: extends Component
Afficher le fichier Open project: baserproject/basercms

Méthodes publiques

Свойство Type Description
$alphabet string アルファベットの組み合わせ(半角記号も可) kcaptcha_config.php で設定されたものを読み込む為に利用
$convert string 代替文字の組み合わせ kcaptcha_config.php で設定されたものを読み込む為に利用
$vendorsPath string Vendorsフォルダのパス kcaptchaの設定ファイルを読み込む為に利用

Méthodes publiques

Méthode Description
check ( string $value, $token = null ) : boolean 認証を行う
convert ( string $key ) : string kcaptchaで定義されたアルファベットを $convert に定義された任意の文字列に変換する
render ( $token = null ) : void キャプチャ画象を表示する
startup ( Controller $controller ) : void startup
strSplit ( string $str ) : array 文字列を1文字づつ分割して配列にする PHP5であれば、str_splitが使える

Method Details

check() public méthode

認証を行う
public check ( string $value, $token = null ) : boolean
$value string フォームから送信された文字列
Résultat boolean

convert() public méthode

kcaptchaで定義されたアルファベットを $convert に定義された任意の文字列に変換する
public convert ( string $key ) : string
$key string
Résultat string

render() public méthode

キャプチャ画象を表示する
public render ( $token = null ) : void
Résultat void

startup() public méthode

startup
public startup ( Controller $controller ) : void
$controller Controller
Résultat void

strSplit() public méthode

文字列を1文字づつ分割して配列にする PHP5であれば、str_splitが使える
public strSplit ( string $str ) : array
$str string
Résultat array

Property Details

$alphabet public_oe property

アルファベットの組み合わせ(半角記号も可) kcaptcha_config.php で設定されたものを読み込む為に利用
public string $alphabet
Résultat string

$convert public_oe property

代替文字の組み合わせ kcaptcha_config.php で設定されたものを読み込む為に利用
public string $convert
Résultat string

$vendorsPath public_oe property

Vendorsフォルダのパス kcaptchaの設定ファイルを読み込む為に利用
public string $vendorsPath
Résultat string