PHP 클래스 ManaPHP\Security\Captcha

상속: extends ManaPHP\Component, implements ManaPHP\Security\CaptchaInterface
파일 보기 프로젝트 열기: manaphp/manaphp

보호된 프로퍼티들

프로퍼티 타입 설명
$_angleAmplitude integer
$_bgRGB string
$_charset string
$_fonts array
$_length integer
$_minInterval integer
$_noiseCharCount integer
$_sessionVar string

공개 메소드들

메소드 설명
__construct ( array | Captcha $options = [] ) Captcha constructor.
generate ( integer $width = 100, integer $height = 30, integer $ttl = 300 ) : ManaPHP\Http\ResponseInterface
setNoiseCharCount ( integer $count ) : static
tryVerify ( string $code ) : void
verify ( string $code ) : void

보호된 메소드들

메소드 설명
_generateByGd ( string $code, integer $width, integer $height ) : string
_generateByImagic ( string $code, integer $width, integer $height ) : ManaPHP\Http\ResponseInterface
_rand_amplitude ( float $a ) : float
_verify ( string $code, boolean $isTry ) : void

메소드 상세

__construct() 공개 메소드

Captcha constructor.
public __construct ( array | Captcha $options = [] )
$options array | ConfManaPHP\Security\Captcha

_generateByGd() 보호된 메소드

protected _generateByGd ( string $code, integer $width, integer $height ) : string
$code string
$width integer
$height integer
리턴 string

_generateByImagic() 보호된 메소드

protected _generateByImagic ( string $code, integer $width, integer $height ) : ManaPHP\Http\ResponseInterface
$code string
$width integer
$height integer
리턴 ManaPHP\Http\ResponseInterface

_rand_amplitude() 보호된 메소드

protected _rand_amplitude ( float $a ) : float
$a float
리턴 float

_verify() 보호된 메소드

protected _verify ( string $code, boolean $isTry ) : void
$code string
$isTry boolean
리턴 void

generate() 공개 메소드

public generate ( integer $width = 100, integer $height = 30, integer $ttl = 300 ) : ManaPHP\Http\ResponseInterface
$width integer
$height integer
$ttl integer
리턴 ManaPHP\Http\ResponseInterface

setNoiseCharCount() 공개 메소드

public setNoiseCharCount ( integer $count ) : static
$count integer
리턴 static

tryVerify() 공개 메소드

public tryVerify ( string $code ) : void
$code string
리턴 void

verify() 공개 메소드

public verify ( string $code ) : void
$code string
리턴 void

프로퍼티 상세

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

protected int $_angleAmplitude
리턴 integer

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

protected string $_bgRGB
리턴 string

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

protected string $_charset
리턴 string

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

protected array $_fonts
리턴 array

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

protected int $_length
리턴 integer

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

protected int $_minInterval
리턴 integer

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

protected int $_noiseCharCount
리턴 integer

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

protected string $_sessionVar
리턴 string