Documentation Index

CPAINT :: Cross-Platform Asynchronous INterface Toolkit

Backend: cpaint_node.set_data()

cpaint_node Method Summary

object add_node()
void set_data()
mixed get_data()
void set_id()
string get_id()
void set_attribute()
string get_attribute()
void set_name()
string get_name()

void set_data ( mixed data )

Assigns data to the node.




» mixed datadata to assign to this node

API Tags

» Access: public


Will assign data to the node. Data will be properly escaped: All non-alphanumeric bytes except -_. will be replaced with a percent (%) sign followed by two hex digits representing their ASCII value.
Please note that UTF-8 is handled safely by this approach.

See RFC 1738 for details on this encoding.

When using JSON as response type (and only then!) non-scalar values may be passed as data.