Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Contao
Widget
addAttribute
Contao\Widget::addAttribute PHP Méthode
Widget Class Documentation
Afficher le fichier
Open project: contao/core-bundle
addAttribute()
public
méthode
Add an attribute
public
addAttribute
(
string
$strName
,
mixed
$varValue
)
$strName
string
The attribute name
$varValue
mixed
The attribute value
public function addAttribute($strName, $varValue) { $this->arrAttributes[$strName] = $varValue; }
Widget
__construct
__get
__isset
__set
addAttribute
addAttributes
addError
addSubmit
generate
generateLabel
generateWithError
getAttribute
getAttributes
getAttributesFromDca
getEmptyStringOrNull
getEmptyStringOrNullByFieldType
getEmptyValue
getEmptyValueByFieldType
getErrorAsHTML
getErrorAsString
getErrors
getErrorsAsString
getPost
hasErrors
isChecked
isSelected
isValidOption
optionChecked
optionSelected
parse
submitInput
validate
validator