PHP Class Contao\FormCaptcha

File upload field.
Inheritance: extends Widget
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$strCaptchaKey string Captcha key
$strPrefix string The CSS class prefix
$strQuestion string Security questions
$strTemplate string Template

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
getQuestion ( ) : string Generate the captcha question

Method Details

__construct() public méthode

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

__get() public méthode

Return a parameter
public __get ( string $strKey ) : mixed
$strKey string The parameter key
Résultat mixed The parameter value

__set() public méthode

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

generate() public méthode

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

generateLabel() public méthode

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

generateQuestion() public méthode

Return the captcha question as string
public generateQuestion ( ) : string
Résultat string The question markup

getQuestion() protected méthode

Generate the captcha question
protected getQuestion ( ) : string
Résultat string The question string

validate() public méthode

Validate the input and set the value
public validate ( )

Property Details

$strCaptchaKey protected_oe property

Captcha key
protected string $strCaptchaKey
Résultat string

$strPrefix protected_oe property

The CSS class prefix
protected string $strPrefix
Résultat string

$strQuestion protected_oe property

Security questions
protected string $strQuestion
Résultat string

$strTemplate protected_oe property

Template
protected string $strTemplate
Résultat string