Documentation Index

CPAINT :: Cross-Platform Asynchronous INterface Toolkit

Backend: cpaint.get_response_type()

cpaint Method Summary

boolean register()
boolean unregister()
void start()
void return_data()
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()
string get_response_type()

string get_response_type ()

Returns the response type as requested by the client.

Class

cpaint

Return Value

» string responsetype (TEXT|OBJECT|XML|E4X|JSON)

API Tags

» Access: public

Description

This method became necessary in CPAINT version 2.0.2 with the introduction of the JSON response type which enables the backend developer to assign complex data directly to cpaint::set_data(), instead of building a set of subnodes.