element_get_attribute
Gets an attribute on a database element. If the element is of type IFunction_call then by default arguments are retrieved rather than an attribute. If arguments have attached functions then the name of the attached function is returned.
arguments
- "attribute_name" : String
The name of the attribute to get.
- "element_name" : String
The name of the database element to get the attribute from.
- "evaluate_field_accessors" : Boolean (default: true)
If an MDL argument is attached to a structure field accessor (as automatically generated by mdl_attach_function_to_argument) then evaluate the accessor and return the name of the actual MDL function attached and the field (seperated by a period) rather than the name of the accessor function.
- "force_attribute" : Boolean (default: false)
If element is of type IFunction_call then get the actual attribute rather than an argument.
return value
DataThe value of the attribute.