PHP 클래스 Pop\Form\Element\Captcha

저자: Nick Sagona, III ([email protected])
상속: extends Pop\Form\Element
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$token array Current token data

공개 메소드들

메소드 설명
__construct ( string $name, string $value = null, integer $expire = 300, string $captcha = null, string $indent = null ) : Captcha Constructor
setLabel ( string $label ) : Element Set the label of the form element object.

보호된 메소드들

메소드 설명
generateEquation ( ) : string Method to randomly generate a simple, basic equation
setValidator ( ) : void Method to set the validator

메소드 상세

__construct() 공개 메소드

Instantiate the captcha form element object.
public __construct ( string $name, string $value = null, integer $expire = 300, string $captcha = null, string $indent = null ) : Captcha
$name string
$value string
$expire integer
$captcha string
$indent string
리턴 Captcha

generateEquation() 보호된 메소드

Method to randomly generate a simple, basic equation
protected generateEquation ( ) : string
리턴 string

setLabel() 공개 메소드

Set the label of the form element object.
public setLabel ( string $label ) : Element
$label string
리턴 Pop\Form\Element

setValidator() 보호된 메소드

Method to set the validator
protected setValidator ( ) : void
리턴 void

프로퍼티 상세

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

Current token data
protected array $token
리턴 array