CPAINT :: Cross-Platform Asynchronous INterface Toolkit

Please note: CPAINT nor this website is under active development.

Frontend: cpaint_result_object.set_attribute()

cpaint_result_object
Method Summary

object find_item_by_type()
void set_attribute()
mixed get_attribute()

cpaint_result_object
Property Summary

mixed data

void set_attribute ( string name, mixed value )

Assigns a new value to an attribute of a cpaint_result_object node.

Class

cpaint_result_object

Parameters

» string nameName of the attribute where to set the value.
» mixed valueValue to assign to the attribute. Note that the value must be a scalar.

Return Value

» void

API Tags

» Access: public

Description

This method exists merely for consistency reasons. We felt like you as developer should have the opportunity to change the values and attributes of a CPAINT response as your application sees fit, and thus eliminating the need for local variables which would only waste memory without an additional benefit.