<function name="rpcf_get_tclasses" id="0x2300"> <input> </input> <output> <integer name="tclass_list_size" /> <for name="i" from="0" count="tclass_list_size"> <integer name="tclass_id" array_index="i" /> <string name="tclass_name" array_index="i" /> <integer name="graph_color" array_index="i" /> <integer name="is_display" array_index="i" /> <integer name="is_fill" array_index="i" /> </for> </output> </function>
function rpcf_get_tclasses() { //0x2300 $ret=array(); if (!$this->connection->urfa_call(0x2300)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $x = $this->connection->urfa_get_data(); $count=$x->DataGetInt(); $ret['count']=$count; for($i=0; $i<$count;$i++) { // $x = $this->connection->urfa_get_data(); $tclass['id']=$x->DataGetInt(); $tclass['name']=$x->DataGetString(); $tclass['graph_color']=$x->DataGetInt(); $tclass['is_display']=$x->DataGetInt(); $tclass['is_fill']=$x->DataGetInt(); $ret['tclasses'][]=$tclass; } // $this->connection->urfa_get_data(); return $ret; }