PHP Class Contao\TextField

Provide methods to handle text fields.
Inheritance: extends Widget
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$blnForAttribute boolean Add a for attribute
$blnSubmitInput boolean Submit user input
$strTemplate string Template

Méthodes publiques

Méthode Description
__construct ( array $arrAttributes = null ) Disable the for attribute if the "multiple" option is set
__set ( string $strKey, mixed $varValue ) Add specific attributes
generate ( ) : string Generate the widget and return it as string

Méthodes protégées

Méthode Description
validator ( mixed $varInput ) : mixed Trim values

Method Details

__construct() public méthode

Disable the for attribute if the "multiple" option is set
public __construct ( array $arrAttributes = null )
$arrAttributes array

__set() public méthode

Add specific attributes
public __set ( string $strKey, mixed $varValue )
$strKey string
$varValue mixed

generate() public méthode

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

validator() protected méthode

Trim values
protected validator ( mixed $varInput ) : mixed
$varInput mixed
Résultat mixed

Property Details

$blnForAttribute protected_oe property

Add a for attribute
protected bool $blnForAttribute
Résultat boolean

$blnSubmitInput protected_oe property

Submit user input
protected bool $blnSubmitInput
Résultat boolean

$strTemplate protected_oe property

Template
protected string $strTemplate
Résultat string