Please note: CPAINT nor this website is under active development. |
Frontend: cpaint_result_object.get_attribute()
cpaint_result_object
Method Summary
object find_item_by_type()
void set_attribute()
mixed get_attribute()
cpaint_result_object
Property Summary
string get_attribute ( string name )
Returns the value of the given attribute.
Class
Parameters
» string nameName of the attribute to retrieve the value for. Node attributes reflect XML tag attributes.
Return Value
» mixed the value of the requested attribute
API Tags
» Access: public
Description
With the freedom to assign arbitrary attributes to a result node via cpaint.set_attribute() in the backend it became necessary to provide a method in the frontend as well for reading the attributes.
This method will take care of proper unescaping automatically.