PHP Class Contao\FormCaptcha

File upload field.
Inheritance: extends Widget
ファイルを表示 Open project: contao/core-bundle Class Usage Examples

Protected Properties

Property Type Description
$strCaptchaKey string Captcha key
$strPrefix string The CSS class prefix
$strQuestion string Security questions
$strTemplate string Template

Public Methods

Method Description
__construct ( array $arrAttributes = null ) Initialize the object
__get ( string $strKey ) : mixed Return a parameter
__set ( string $strKey, mixed $varValue ) Add specific attributes
generate ( ) : string Generate the widget and return it as string
generateLabel ( ) : string Generate the label and return it as string
generateQuestion ( ) : string Return the captcha question as string
validate ( ) Validate the input and set the value

Protected Methods

Method Description
getQuestion ( ) : string Generate the captcha question

Method Details

__construct() public method

Initialize the object
public __construct ( array $arrAttributes = null )
$arrAttributes array An optional attributes array

__get() public method

Return a parameter
public __get ( string $strKey ) : mixed
$strKey string The parameter key
return mixed The parameter value

__set() public method

Add specific attributes
public __set ( string $strKey, mixed $varValue )
$strKey string The attribute name
$varValue mixed The attribute value

generate() public method

Generate the widget and return it as string
public generate ( ) : string
return string The widget markup

generateLabel() public method

Generate the label and return it as string
public generateLabel ( ) : string
return string The label markup

generateQuestion() public method

Return the captcha question as string
public generateQuestion ( ) : string
return string The question markup

getQuestion() protected method

Generate the captcha question
protected getQuestion ( ) : string
return string The question string

validate() public method

Validate the input and set the value
public validate ( )

Property Details

$strCaptchaKey protected_oe property

Captcha key
protected string $strCaptchaKey
return string

$strPrefix protected_oe property

The CSS class prefix
protected string $strPrefix
return string

$strQuestion protected_oe property

Security questions
protected string $strQuestion
return string

$strTemplate protected_oe property

Template
protected string $strTemplate
return string