baserCMS クラスリファレンス

BcCaptchaService
in package
implements BcCaptchaServiceInterface

Class BcCaptchaService

Table of Contents

Interfaces

BcCaptchaServiceInterface
interface BcCaptchaServiceInterface

Methods

check()  : bool
認証を行う
render()  : string
キャプチャ画像を生成して画像データを返す

Methods

check()

認証を行う

public check(ServerRequest $request, string $token, string $value) : bool
Parameters
$request : ServerRequest
$token : string
$value : string

フォームから送信された文字列

Tags
checked
noTodo
unitTest
Return values
bool

render()

キャプチャ画像を生成して画像データを返す

public render(ServerRequest $request, string $token) : string
Parameters
$request : ServerRequest
$token : string
Tags
checked
noTodo
Return values
string —

画像のバイナリデータ

On this page

Search results