34 'accept-charset' =>
'',
38 'enctype' =>
'multipart/form-data',
65 if (array_key_exists($attribute, $this->allowedAttributes)) {
66 $this->attributes->addAttribute($attribute,
$value);
68 if ($attribute ==
'id' || $attribute ==
'name') {
69 $this->equalizeNameAndIdAttribute();
80 protected function equalizeNameAndIdAttribute() {
82 $nameAttribute = $this->attributes->getAttributeObjectByKey(
'name');
83 $idAttribute = $this->attributes->getAttributeObjectByKey(
'id');
84 if (is_object($nameAttribute) && is_object($idAttribute)) {
85 $nameAttribute->setReturnValueWithoutPrefix(TRUE);
86 $this->attributes->setAttribute(
'name', $nameAttribute);
87 $nameAttributeValue = $nameAttribute->getValueWithoutPrefix();
88 $idAttributeValue = $idAttribute->getValue(
'id');
89 if (!empty($nameAttributeValue) && !empty($idAttributeValue)) {
90 $this->attributes->setValue(
'id', $nameAttributeValue);
setAttribute($attribute, $value)