<function name="rpcf_get_doc_types_list" id="0x7024"> <input/> <output> <integer name="count" /> <for name="i" from="0" count="count"> <string name="doc_name" array_index="i" /> <integer name="id" array_index="i" /> </for> </output> </function>
function rpcf_get_doc_types_list() { //0x7024 $ret=array(); if (!$this->connection->urfa_call(0x7024)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $x = $this->connection->urfa_get_data();// Types count $count = $x->DataGetInt(); $ret['count'] = $count; for ($i=0;$i<$count;$i++) { // $x = $this->connection->urfa_get_data(); $type['doc_name']=$x->DataGetString(); $type['id']=$x->DataGetInt(); $ret['doc_types'][]=$type; } // $this->connection->urfa_get_data(); return $ret; }