PHP Class Contao\FormPassword

Form field "password".
Inheritance: extends Widget
Datei anzeigen Open project: contao/core-bundle

Protected Properties

Property Type Description
$blnForAttribute boolean Add a for attribute
$blnSubmitInput boolean Submit user input
$strPrefix string The CSS class prefix
$strTemplate string Template

Public Methods

Method Description
__construct ( array $arrAttributes = null ) Always decode entities
__set ( string $strKey, mixed $varValue ) Add specific attributes
generate ( ) : string Generate the widget and return it as string
generateConfirmation ( ) : string Generate the widget and return it as string
generateConfirmationLabel ( ) : string Generate the label of the confirmation field and return it as string
parse ( array $arrAttributes = null ) : string Parse the template file and return it as string

Protected Methods

Method Description
validator ( mixed $varInput ) : mixed Validate input and set value

Method Details

__construct() public method

Always decode entities
public __construct ( array $arrAttributes = null )
$arrAttributes array An optional attributes array

__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

generateConfirmation() public method

Generate the widget and return it as string
public generateConfirmation ( ) : string
return string The confirmation field markup

generateConfirmationLabel() public method

Generate the label of the confirmation field and return it as string
public generateConfirmationLabel ( ) : string
return string The confirmation label markup

parse() public method

Parse the template file and return it as string
public parse ( array $arrAttributes = null ) : string
$arrAttributes array An optional attributes array
return string The template markup

validator() protected method

Validate input and set value
protected validator ( mixed $varInput ) : mixed
$varInput mixed The user input
return mixed The validated user input

Property Details

$blnForAttribute protected_oe property

Add a for attribute
protected bool $blnForAttribute
return boolean

$blnSubmitInput protected_oe property

Submit user input
protected bool $blnSubmitInput
return boolean

$strPrefix protected_oe property

The CSS class prefix
protected string $strPrefix
return string

$strTemplate protected_oe property

Template
protected string $strTemplate
return string