JForm::setFieldAttribute
Method to set an attribute value for a field XML element.
Signature
public function setFieldAttribute(string
$name,
[string
$attribute = null,
[mixed
$value = null,
[string
$group = null]]] )
Parameters
-
$name
- The name of the form field for which to set the attribute value.
-
$attribute
- The name of the attribute for which to set a value.
-
$value
- The value to set for the attribute.
-
$group
- The optional dot-separated form group path on which to find the field.
Returns
- boolean
- True on success.
Errors/Exceptions
-
UnexpectedValueException