Please note: CPAINT nor this website is under active development. |
Frontend: Class cpaint_result_object
Method Summary
object find_item_by_type()
void set_attribute()
mixed get_attribute()
Property Summary
This is the basic prototype for a cpaint node object.
Author(s)
» Paul Sullivan <wiley14|at|gmail.com>
» Dominique Stender <dstender|at|st-webdevelopment.de>
API Tags
» Access: public
Information Tags
» Version: 2.1.0
» Copyright: Copyright (c) 2005-2006 Paul Sullivan, Dominique Stender - http://sf.net/projects/cpaint
» License: released under the terms of the LGPL.
Description
If you have configured CPAINT with cpaint.set_response_type('object') - which is also the default configuration -
then your callback function will receive an object of class cpaint_result_object as response.
For all other response types this object is irrelevant!
This object represents the parsed content of the response from the CPAINT backend. The original response was XML but has been parsed by cpaint_transformer.object_conversion.
Via the available methods the various subnodes and attributes can be retrieved.
Textdata contained in this node can be retrieved directly via object.data.
Subnodes of the same name can be traversed and accessed directly via array object.subnodename.
Attributes can not be retrieved directly to avoid naming collisions with subnodes. Use object.get_attribute() instead.